mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Evaluate mixin result as expression in mixin definition
This commit is contained in:
parent
905ccae64c
commit
33204ff599
1 changed files with 3 additions and 1 deletions
|
@ -3455,7 +3455,9 @@ void BfModule::VisitCodeBlock(BfBlock* block)
|
|||
}
|
||||
else if ((mCurMethodInstance->IsMixin()) && (mCurMethodState->mCurScope == &mCurMethodState->mHeadScope))
|
||||
{
|
||||
// Silently allow...
|
||||
// Only in mixin definition - result ignored
|
||||
CreateValueFromExpression(expr);
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue