mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
225 B
Solidity
10 lines
225 B
Solidity
|
// Used to segfault.
|
||
|
contract C {
|
||
|
struct S {
|
||
|
mapping(S => uint) a;
|
||
|
}
|
||
|
function g (S calldata) external view {}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (56-57): Only elementary types, contract types or enums are allowed as mapping keys.
|