mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
We were failing on an invalid type lookup in a tuple bind
This commit is contained in:
parent
4b2238337d
commit
dfbf7a2792
1 changed files with 9 additions and 4 deletions
|
@ -2089,6 +2089,8 @@ void BfModule::HandleCaseEnumMatch_Tuple(BfTypedValue tupleVal, const BfSizedArr
|
|||
if (!isVarOrLet)
|
||||
{
|
||||
auto wantType = ResolveTypeRef(varDecl->mTypeRef);
|
||||
if (wantType == NULL)
|
||||
wantType = mContext->mBfObjectType;
|
||||
if (wantType != NULL)
|
||||
tupleElement = Cast(varDecl->mTypeRef, tupleElement, wantType);
|
||||
if (!tupleElement)
|
||||
|
@ -4829,7 +4831,10 @@ void BfModule::Visit(BfUsingStatement* usingStmt)
|
|||
failed = true;
|
||||
}
|
||||
else
|
||||
embeddedValue = BfTypedValue(localVar->mAddr, localVar->mResolvedType, true);
|
||||
{
|
||||
embeddedValue = exprEvaluator.LoadLocal(localVar);
|
||||
}
|
||||
//exprEvaluator.CheckModifyResult(embeddedValue, usingStmt->mVariableDeclaration->mNameNode,);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue