mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Made type lookup errors 'var' instead of 'Object', less error cascading
This commit is contained in:
parent
570c03f25c
commit
d48d03c58b
7 changed files with 107 additions and 28 deletions
|
@ -3828,7 +3828,10 @@ void BfCompiler::ProcessAutocompleteTempType()
|
|||
if (BfNodeIsA<BfVarTypeReference>(fieldDef->mTypeRef))
|
||||
{
|
||||
if (fieldDef->mInitializer == NULL)
|
||||
mPassInstance->Fail("Implicitly-typed fields must be initialized", fieldDef->mFieldDeclaration);
|
||||
{
|
||||
if ((fieldDef->mTypeRef->IsA<BfVarTypeReference>()) || (fieldDef->mTypeRef->IsA<BfLetTypeReference>()))
|
||||
mPassInstance->Fail("Implicitly-typed fields must be initialized", fieldDef->GetRefNode());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue