solidity/test/libsolidity/syntaxTests/constants/mapping_constant.sol
hrkrshnn 8815d6f5f0 Moved a check related to constants to TypeChecker
And added a proper error message when constant types containing (nested) mapping types are used.
2021-10-26 18:43:04 +02:00

4 lines
153 B
Solidity

mapping(uint => uint) constant b = b;
// ----
// DeclarationError 3530: (0-36): The type contains a (nested) mapping and therefore cannot be a constant.