mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Moved a check related to constants to TypeChecker
And added a proper error message when constant types containing (nested) mapping types are used.
This commit is contained in:
@@ -1124,6 +1124,8 @@ public:
|
||||
bool containsNestedMapping() const override
|
||||
{
|
||||
solAssert(nameable(), "Called for a non nameable type.");
|
||||
// DeclarationTypeChecker::endVisit(VariableDeclaration const&)
|
||||
// assumes that this will never be true.
|
||||
solAssert(!underlyingType().containsNestedMapping(), "");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user