Merge pull request #11480 from ethereum/event-mapping-fatal-error

Errors about nested mapping in event parameter are fatal.
This commit is contained in:
chriseth
2021-06-03 11:39:26 +02:00
committed by GitHub
8 changed files with 30 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."