1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 12:02:21 +02:00

Fixed issue with failed variable bind in enum case

This commit is contained in:
Brian Fiete 2021-01-04 13:44:11 -08:00
parent 093a617b56
commit 07bb71150d

View file

@ -1912,7 +1912,10 @@ BfLocalVariable* BfModule::HandleVariableDeclaration(BfVariableDeclaration* varD
type = ResolveTypeRef(varDecl->mTypeRef);
}
if (type == NULL)
type = mContext->mBfObjectType;
{
type = GetPrimitiveType(BfTypeCode_Var);
val = GetDefaultTypedValue(type);
}
if ((type->IsVar()) || (type->IsLet()))
{