mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed comptime with local mixin with composite param access
This commit is contained in:
parent
4575c64133
commit
dd3485af0c
2 changed files with 14 additions and 1 deletions
|
@ -3668,8 +3668,10 @@ BfTypedValue BfExprEvaluator::LoadLocal(BfLocalVariable* varDecl, bool allowRef)
|
|||
else
|
||||
{
|
||||
BfTypedValueKind kind;
|
||||
if ((varDecl->mResolvedType->IsComposite()) && (varDecl->IsParam()) && (mModule->mCurMethodState->mMixinState == NULL))
|
||||
if ((varDecl->mResolvedType->IsComposite()) && (varDecl->mValue.IsArg()))
|
||||
{
|
||||
kind = varDecl->mIsReadOnly ? BfTypedValueKind_ReadOnlyAddr : BfTypedValueKind_Addr;
|
||||
}
|
||||
else
|
||||
kind = BfTypedValueKind_Value;
|
||||
localResult = BfTypedValue(varDecl->mValue, varDecl->mResolvedType, kind);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue