File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2906,6 +2906,13 @@ MethodTableBuilder::EnumerateClassMethods()
29062906 IDS_CLASSLOAD_BADSPECIALMETHOD,
29072907 tok);
29082908 }
2909+
2910+ // Check for the presence of virtual static methods
2911+ if (IsMdVirtual (dwMemberAttrs) && IsMdStatic (dwMemberAttrs))
2912+ {
2913+ bmtProp->fHasVirtualStaticMethods = TRUE ;
2914+ }
2915+
29092916 //
29102917 // But first - minimal flags validity checks
29112918 //
@@ -2972,11 +2979,7 @@ MethodTableBuilder::EnumerateClassMethods()
29722979 }
29732980 if (IsMdStatic (dwMemberAttrs))
29742981 {
2975- if (fIsClassInterface )
2976- {
2977- bmtProp->fHasVirtualStaticMethods = TRUE ;
2978- }
2979- else
2982+ if (!fIsClassInterface )
29802983 {
29812984 // Static virtual methods are only allowed to exist in interfaces
29822985 BuildMethodTableThrowException (BFA_VIRTUAL_STATIC_METHOD);
You can’t perform that action at this time.
0 commit comments