aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_mapping.sol
blob: 61c0cc178d070ac4f0778c9af1abcc595437f372 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                         
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.