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
{{ message }}
Repository navigation
Loader\classloader\StaticVirtualMethods\RegressionTests\GetInterfaceMapWithStaticVirtualsAndConstraints fails in NativeAOT #89122
Test fails as it can't generate the interface map as it wasn't compiled.
Reproduction Steps
Run Loader\classloader\StaticVirtualMethods\RegressionTests\GetInterfaceMapWithStaticVirtualsAndConstraints
Expected behavior
Pass
Actual behavior
Unhandled Exception: System.NotSupportedException: This object cannot be invoked because no code was generated for it: 'GetInterfaceMapWithStaticVirtualsAndConstraints.Outer1+IStatics[System.Int32].MStatic()'. at System.Reflection.Runtime.MethodInfos.RuntimeNamedMethodInfo1.GetUncachedMethodInvoker(RuntimeTypeInfo[], MemberInfo) + 0x2f
at Internal.Reflection.Execution.ExecutionEnvironmentImplementation.GetInterfaceMap(Type, Type, MethodInfo[]&, MethodInfo[]&) + 0x95
at System.Reflection.Runtime.TypeInfos.RuntimeTypeInfo.GetInterfaceMap(Type) + 0x11a
at GetInterfaceMapWithStaticVirtualsAndConstraints.Program.Main() + 0xd0
at GetInterfaceMapWithStaticVirtualsAndConstraints!<BaseAddress>+0x1e475c
Activity
davidwrighton commentedon Jul 18, 2023
This is a new test as of PR #89061
davidwrighton commentedon Jul 19, 2023
Dup of #89157