mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8815d6f5f0
And added a proper error message when constant types containing (nested) mapping types are used.
9 lines
256 B
Solidity
9 lines
256 B
Solidity
contract C {
|
|
struct S {
|
|
mapping(uint => uint) c;
|
|
}
|
|
S public constant e = 0x1212121212121212121212121212121212121212;
|
|
}
|
|
// ----
|
|
// DeclarationError 3530: (71-135): The type contains a (nested) mapping and therefore cannot be a constant.
|