solidity/test/libsolidity/syntaxTests/iceRegressionTests/memory_mapping_array.sol
2020-04-16 16:42:12 +02:00

8 lines
253 B
Solidity

contract C {
function h ( bool flag ) public returns ( bool c ) {
mapping ( string => uint24 ) [ 1 ] memory val ;
}
}
// ----
// TypeError: (91-136): Data location must be "storage" for variable, but "memory" was given.