mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed issue where we allowed multiple semicolons at end of if statements
This commit is contained in:
parent
76cb117e1f
commit
2c30afbfcf
4 changed files with 31 additions and 8 deletions
|
@ -3891,8 +3891,8 @@ void BfCompiler::ProcessAutocompleteTempType()
|
|||
if (fieldInstance->mConstIdx != -1)
|
||||
{
|
||||
auto constant = typeInst->mConstHolder->GetConstantById(fieldInstance->mConstIdx);
|
||||
auto retVal = module->ConstantToCurrent(constant, typeInst->mConstHolder, typeInst);
|
||||
BfTypedValue typedValue = BfTypedValue(retVal, typeInst);
|
||||
auto retVal = module->ConstantToCurrent(constant, typeInst->mConstHolder, fieldInstance->mResolvedType);
|
||||
BfTypedValue typedValue = BfTypedValue(retVal, fieldInstance->mResolvedType);
|
||||
autoComplete->CheckResult(fieldDef->GetRefNode(), typedValue);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue