Errors about nested mapping in event parameter are fatal.

(Also applies for error parameters.)
This commit is contained in:
hrkrshnn
2021-06-03 11:02:27 +02:00
parent b00027724a
commit cc915f023e
6 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -3411,7 +3411,7 @@ void TypeChecker::checkErrorAndEventParameters(CallableDeclaration const& _calla
for (ASTPointer<VariableDeclaration> const& var: _callable.parameters())
{
if (type(*var)->containsNestedMapping())
m_errorReporter.typeError(
m_errorReporter.fatalTypeError(
3448_error,
var->location(),
"Type containing a (nested) mapping is not allowed as " + kind + " parameter type."