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

9 lines
180 B
Solidity
Raw Normal View History

contract c {
struct S {
string s;
}
mapping(S => uint) data;
}
// ----
// TypeError 7804: (49-50): Only elementary types, contract types or enums are allowed as mapping keys.