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
usingSystem;publicunsafeclassC{publicstaticvoidGenericMethod<T>(){Console.WriteLine($"T was {typeof(T).FullName}");}publicvoidM(){delegate*<void>fp=&GenericMethod<string>;fp();}publicvoidN<T>(){delegate*<void>fp=&GenericMethod<T>;fp();}publicstaticvoidMain(){varc=newC();c.M();c.N<string>();}}
Works with --interp, except there are some warnings:
Object.runtime_invoke_direct_void: Store local stack type mismatch 1 7
Object.runtime_invoke_direct_void: Store local stack type mismatch 1 7
C.Main: Store local stack type mismatch 1 7
C.Main: Store local stack type mismatch 1 7
C.M: Store local stack type mismatch 1 7
T was System.String
C.N: Store local stack type mismatch 1 7
T was System.String
Expected:
Actual: Crash.
Backtrace:
The text was updated successfully, but these errors were encountered: