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

Fixed calling @-prefixed methods

This commit is contained in:
Brian Fiete 2025-01-02 14:21:48 -08:00
parent 69fab22a39
commit 97c119cbc7

View file

@ -18966,6 +18966,9 @@ void BfExprEvaluator::DoInvocation(BfAstNode* target, BfMethodBoundExpression* m
return;
}
if (targetFunctionName.StartsWith('@'))
targetFunctionName.Remove(0, 1);
//TODO: We removed this... Messed up with PrimStruct 'this' non-mut errors
// We moved this until later in MatchMethod, we want the raw target for the GetType optimization, plus we shouldn't do this until we know we won't do a SkipCall