mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 22:34:09 +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)
|
if (!isVarOrLet)
|
||||||
{
|
{
|
||||||
auto wantType = ResolveTypeRef(varDecl->mTypeRef);
|
auto wantType = ResolveTypeRef(varDecl->mTypeRef);
|
||||||
|
if (wantType == NULL)
|
||||||
|
wantType = mContext->mBfObjectType;
|
||||||
if (wantType != NULL)
|
if (wantType != NULL)
|
||||||
tupleElement = Cast(varDecl->mTypeRef, tupleElement, wantType);
|
tupleElement = Cast(varDecl->mTypeRef, tupleElement, wantType);
|
||||||
if (!tupleElement)
|
if (!tupleElement)
|
||||||
|
@ -4829,7 +4831,10 @@ void BfModule::Visit(BfUsingStatement* usingStmt)
|
||||||
failed = true;
|
failed = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
embeddedValue = BfTypedValue(localVar->mAddr, localVar->mResolvedType, true);
|
{
|
||||||
|
embeddedValue = exprEvaluator.LoadLocal(localVar);
|
||||||
|
}
|
||||||
|
//exprEvaluator.CheckModifyResult(embeddedValue, usingStmt->mVariableDeclaration->mNameNode,);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue