1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 17:28:00 +02:00

Allow mixins and expression blocks to end in a ref expression

This commit is contained in:
Brian Fiete 2022-06-15 06:45:53 -07:00
parent 3cc0ba2ed6
commit 5268e103e9
6 changed files with 60 additions and 18 deletions

View file

@ -3538,7 +3538,7 @@ void BfModule::VisitCodeBlock(BfBlock* block)
else if ((mCurMethodInstance != NULL) && (mCurMethodInstance->IsMixin()) && (mCurMethodState->mCurScope == &mCurMethodState->mHeadScope))
{
// Only in mixin definition - result ignored
CreateValueFromExpression(expr);
CreateValueFromExpression(expr, NULL, BfEvalExprFlags_AllowRefExpr);
break;
}
else