mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Errors about nested mapping in event parameter are fatal.
(Also applies for error parameters.)
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user