Fix references to unbound types not being reported
This commit is contained in:
parent
3efd2a6d6a
commit
ad460bc4a2
1 changed files with 1 additions and 3 deletions
|
@ -570,9 +570,7 @@ namespace bolt {
|
|||
auto RefTE = static_cast<ReferenceTypeExpression*>(N);
|
||||
auto Ty = lookupMono(RefTE->Name->getCanonicalText());
|
||||
if (Ty == nullptr) {
|
||||
if (Config.typeVarsRequireForall()) {
|
||||
DE.add<BindingNotFoundDiagnostic>(RefTE->Name->getCanonicalText(), RefTE->Name);
|
||||
}
|
||||
DE.add<BindingNotFoundDiagnostic>(RefTE->Name->getCanonicalText(), RefTE->Name);
|
||||
Ty = createTypeVar();
|
||||
}
|
||||
N->setType(Ty);
|
||||
|
|
Loading…
Reference in a new issue