1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed 'ref' and 'in' this parameter for extension methods

This commit is contained in:
Brian Fiete 2025-01-17 17:32:25 -08:00
parent 0d15b28bd3
commit a1cd01cd3d
4 changed files with 43 additions and 1 deletions

View file

@ -1336,6 +1336,9 @@ void BfAutoComplete::AddExtensionMethods(BfTypeInstance* targetType, BfTypeInsta
continue;
auto thisType = methodInstance->GetParamType(0);
if (thisType->IsRef())
thisType = thisType->GetUnderlyingType();
bool paramValidated = false;
if (methodInstance->GetNumGenericParams() > 0)
{