We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c3cad commit d93b7b8Copy full SHA for d93b7b8
src/CLR/Core/TypeSystem.cpp
@@ -1046,6 +1046,13 @@ bool CLR_RT_TypeDef_Instance::ResolveToken(
1046
else
1047
{
1048
// elem.DataType == DATATYPE_MVAR
1049
+
1050
+ // Use the *caller's* bound genericType (Stack<Int32>, etc.)
1051
+ if (caller == nullptr || caller->genericType == nullptr)
1052
+ {
1053
+ return false;
1054
+ }
1055
1056
CLR_RT_GenericParam_Index gpIdx;
1057
caller->assembly->FindGenericParamAtMethodDef(*caller, elem.GenericParamPosition, gpIdx);
1058
auto &gp = caller->assembly->crossReferenceGenericParam[gpIdx.GenericParam()];
0 commit comments