solidity/test/libsolidity/syntaxTests/types/struct_mapping_recursion.sol

10 lines
225 B
Solidity
Raw Normal View History

// 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.