solidity/test/libsolidity/syntaxTests/parsing/mapping_nonelementary_key_2.sol

9 lines
150 B
Solidity

contract c {
struct S {
uint x;
}
mapping(S => uint) data;
}
// ----
// ParserError: (47-48): Expected elementary type name for mapping key type