mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
1fa6c71bd0
Also added syntax and semantic test.
9 lines
206 B
Solidity
9 lines
206 B
Solidity
contract c {
|
|
struct S {
|
|
string s;
|
|
}
|
|
mapping(S => uint) data;
|
|
}
|
|
// ----
|
|
// TypeError 7804: (49-50): Only elementary types, user defined value types, contract types or enums are allowed as mapping keys.
|