Merge pull request #8274 from ethereum/structRecursionMapping

Move mapping key checks to ReferencesResolver and make errors fatal.
This commit is contained in:
Daniel Kirchner
2020-02-12 11:19:07 +01:00
committed by GitHub
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.