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:
parent
093a617b56
commit
07bb71150d
1 changed files with 4 additions and 1 deletions
|
@ -1912,7 +1912,10 @@ BfLocalVariable* BfModule::HandleVariableDeclaration(BfVariableDeclaration* varD
|
||||||
type = ResolveTypeRef(varDecl->mTypeRef);
|
type = ResolveTypeRef(varDecl->mTypeRef);
|
||||||
}
|
}
|
||||||
if (type == NULL)
|
if (type == NULL)
|
||||||
type = mContext->mBfObjectType;
|
{
|
||||||
|
type = GetPrimitiveType(BfTypeCode_Var);
|
||||||
|
val = GetDefaultTypedValue(type);
|
||||||
|
}
|
||||||
|
|
||||||
if ((type->IsVar()) || (type->IsLet()))
|
if ((type->IsVar()) || (type->IsLet()))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue