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:
parent
3cc0ba2ed6
commit
5268e103e9
6 changed files with 60 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue