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
Fixed: Add validation warning for sealed classes containing benchmarks (dotnet#2660)
* Add validation for sealed classes containing benchmarks
* Moved public class validation to CompilationValidator
Co-authored-by: Tim Cassell <[email protected]>
thrownewInvalidBenchmarkDeclarationException($"{declaringType.FullName} containing {methodType} method {methodInfo.Name} has incorrect access modifiers.\nDeclaring type must be public.");
273
-
274
-
declaringType=declaringType.DeclaringType;
275
-
}
266
+
/* Moved the code that verifies if DeclaringType of a given MethodInfo (a method) is publicly accessible to CompilationValidator */
0 commit comments