mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Move mapping key checks to ReferencesResolver and make them fatal.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// 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.
|
||||
Reference in New Issue
Block a user