solidity/test/libsolidity/syntaxTests/iceRegressionTests/memory_mapping_array.sol

8 lines
287 B
Solidity
Raw Normal View History

contract C {
function h ( bool flag ) public returns ( bool c ) {
mapping ( string => uint24 ) [ 1 ] memory val ;
}
}
// ----
2020-07-15 17:50:59 +00:00
// TypeError 4061: (91-136): Type mapping(string => uint24)[1] is only valid in storage because it contains a (nested) mapping.