Move mapping key checks to ReferencesResolver and make them fatal.

This commit is contained in:
Daniel Kirchner
2020-02-11 13:35:23 +01:00
parent 5214cb0e76
commit 9c3151748e
5 changed files with 35 additions and 30 deletions
@@ -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.