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

Splat fixes

This commit is contained in:
Brian Fiete 2022-07-30 08:07:12 -04:00
parent 56af3bb376
commit ab4719422a
2 changed files with 5 additions and 1 deletions

View file

@ -9215,7 +9215,9 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
}
}
if ((!target.mType->IsGenericParam()) && (!target.IsSplat()) && (!IsVar(target.mType)))
if ((!target.mType->IsGenericParam()) &&
((!target.IsSplat()) || (target.mType->IsWrappableType())) &&
(!IsVar(target.mType)))
target = MakeCallableTarget(targetSrc, target);
}