Make type error fatal to prevent assert failure at later point

This commit is contained in:
Mathias Baumann
2020-02-13 15:16:28 +01:00
parent 9aed40ab19
commit 8911b58a6d
7 changed files with 20 additions and 9 deletions
+1 -1
View File
@@ -2154,7 +2154,7 @@ bool TypeChecker::visit(FunctionCall const& _functionCall)
}
default:
m_errorReporter.typeError(_functionCall.location(), "Type is not callable");
m_errorReporter.fatalTypeError(_functionCall.location(), "Type is not callable");
funcCallAnno.kind = FunctionCallKind::Unset;
funcCallAnno.isPure = argumentsArePure;
break;