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

Added error for using cascade operator on static method

This commit is contained in:
Brian Fiete 2020-11-18 09:54:19 -08:00
parent a6f85f53f9
commit d4ea9bce2b

View file

@ -15270,8 +15270,8 @@ void BfExprEvaluator::DoInvocation(BfAstNode* target, BfMethodBoundExpression* m
mModule->FinishAttributeState(&attributeState);
if (isCascade)
{
if (outCascadeValue != NULL)
{
if ((outCascadeValue != NULL) && (thisValue.mValue))
{
*outCascadeValue = thisValue;
}