You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make the inner class inherit the outer class (RCS1102 is still reported)
This strategy is used in certain unit testing structures where there may be no instance members/methods. For example, passing a type argument to TestFixtureAttribute from NUnit for a generic test fixture requires that the nested class inherit from the child class in the aforementioned structure.
Actual Behavior:
publicclassClass1<T>// RCS1102 is reported on Class1{publicsealedclassClass2:Class1<T>{}}
Expected Behavior: RCS1102 should not be reported since it is being inherited by the nested class. Making Class1 static in this case would result in a compilation error due to the inheritance.
The text was updated successfully, but these errors were encountered:
Product and Version Used: 4.1.1
Steps to Reproduce:
This strategy is used in certain unit testing structures where there may be no instance members/methods. For example, passing a type argument to
TestFixtureAttribute
from NUnit for a generic test fixture requires that the nested class inherit from the child class in the aforementioned structure.Actual Behavior:
Expected Behavior:
RCS1102 should not be reported since it is being inherited by the nested class. Making
Class1
static in this case would result in a compilation error due to the inheritance.The text was updated successfully, but these errors were encountered: