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
This is just an assert guarding some invariant that the reflection stack relies on. The test "works" with a release build of the runtime, but whatever invariant it's guarding obviously doesn't hold.
Ran into this while writing tests for #103220, going to disable newly added tests on this.
Process terminated. Assertion failed.
The class hierarchy should declare the method
at System.Delegate.GetMethodImpl()
at System.MulticastDelegate.GetMethodImpl()
at Program.<Main>$(String[] args)
@ericstj Yes, this is a DIM issue. A naive fix would be to update the assert to check if the targetType is an interface. I'm not sure we have a better explicit check for a DIM. I can submit a PR if everyone is okay with this.
Debug.Assert(currentType!=null||_target.GetType().IsCOMObject||targetType.IsInterface,"The class hierarchy should declare the method");
This is just an assert guarding some invariant that the reflection stack relies on. The test "works" with a release build of the runtime, but whatever invariant it's guarding obviously doesn't hold.
Ran into this while writing tests for #103220, going to disable newly added tests on this.
Hit for the following program:
The text was updated successfully, but these errors were encountered: