Open
Description
Reproduction: godbolt.
Expected behavior: things work.
Actual behavior:
Unhandled exception. System.ArgumentException: Type handle 'Program+OpenInstanceDelStruct`1[System.Int32]&' and method handle with declaring type 'Program+OpenInstanceDelStruct`1[System.Int32]' are incompatible. Get RuntimeMethodHandle and declaring RuntimeTypeHandle off the same MethodBase.
at System.RuntimeType.GetMethodBase(RuntimeType reflectedType, RuntimeMethodHandleInternal methodHandle)
at System.Delegate.GetMethodImpl()
at System.Diagnostics.DiagnosticMethodInfo.Create(Delegate delegate)
at Program.Main() in /app/example.cs:line 11