Disallow inline arrays of mapping type.

This commit is contained in:
chriseth
2018-11-29 19:45:06 +01:00
parent 124a8def84
commit c445e7dfa4
3 changed files with 12 additions and 0 deletions
@@ -0,0 +1,8 @@
contract C {
mapping(int => int) a;
function f() public {
[a];
}
}
// ----
// TypeError: (66-69): Type mapping(int256 => int256) is only valid in storage.