1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Fixed mWasGenericParam for ref params

This commit is contained in:
Brian Fiete 2020-06-01 07:33:00 -07:00
parent d8f741e779
commit fa7792650c

View file

@ -20008,7 +20008,11 @@ void BfModule::DoMethodDeclaration(BfMethodDeclaration* methodDeclaration, bool
break;
}
methodInstance->mParams[paramIdx + implicitParamCount].mWasGenericParam = defaultMethodInstance->mParams[defaultParamIdx + defaultImplicitParamCount].mResolvedType->IsGenericParam();
BfType* paramType = defaultMethodInstance->mParams[defaultParamIdx + defaultImplicitParamCount].mResolvedType;
if (paramType->IsRef())
paramType = paramType->GetUnderlyingType();
methodInstance->mParams[paramIdx + implicitParamCount].mWasGenericParam = paramType->IsGenericParam();
paramIdx++;
defaultParamIdx++;
}