solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_mapping.sol

9 lines
336 B
Solidity
Raw Normal View History

2018-07-26 04:06:56 +00:00
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 9259: (148-180): Constants of non-value type not yet implemented.
// TypeError 4266: (148-180): Uninitialized "constant" variable.