The coreclr pri1 test is failing with the following error:
Expected typeof generic method Type Parameter for parameter, 'aaaa', to
be 'System.String', but found 'System.__Canon'
The issue was caused by the fact that we were not setting the
isInstantiatingStub for calls to generic delegates. The old crossgen
was doing that correctly.
enforceOwningType: false,
innerContext,
isUnboxingStub: false,
- isInstantiatingStub: false);
+ isInstantiatingStub: _targetMethod.Method.HasInstantiation);
builder.EmitTypeSignature(_delegateType, innerContext);
}
IMethodNode targetMethodNode = _codegenNodeFactory.MethodEntrypoint(
ctorKey.Method,
isUnboxingStub: false,
- isInstantiatingStub: false,
+ isInstantiatingStub: ctorKey.Method.Method.HasInstantiation,
isPrecodeImportRequired: false,
signatureContext: signatureContext);