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

9 lines
152 B
Solidity
Raw Normal View History

contract c {
struct S {
string s;
}
mapping(S => uint) data;
}
// ----
// ParserError: (49-50): Expected elementary type name for mapping key type