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:
parent
d8f741e779
commit
fa7792650c
1 changed files with 5 additions and 1 deletions
|
@ -20008,7 +20008,11 @@ void BfModule::DoMethodDeclaration(BfMethodDeclaration* methodDeclaration, bool
|
||||||
break;
|
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++;
|
paramIdx++;
|
||||||
defaultParamIdx++;
|
defaultParamIdx++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue