runtime
runtime copied to clipboard
Assert Failure: !"Cannot take the address of an uninstantiated generic method."
Minimal repro:
internal interface IGen< T > { void Target< U >(); }
internal class GenInt : IGen< int >
{
public void Target< U >()
{
...
}
public static void DelegateTest< U >()
{
IGen
And call GenInt.DelegateTest< string >() (or any instantiation using a reference type)
Fixed with dotnet/coreclr#5347