solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_mapping.sol
2018-08-14 18:53:06 +02:00

9 lines
326 B
Solidity

contract C {
// This should probably have a better error message at some point.
// Constant mappings should not be possible in general.
mapping(uint => uint) constant x;
}
// ----
// TypeError: (148-180): Constants of non-value type not yet implemented.
// TypeError: (148-180): Uninitialized "constant" variable.