Fix ICE caused by an immutable struct

This commit is contained in:
a3d4
2022-06-07 10:29:45 +02:00
committed by wechman
parent 3948391ca8
commit 423f3d3088
4 changed files with 28 additions and 6 deletions
@@ -0,0 +1,9 @@
contract Contract {
struct S {
int k;
}
S immutable s;
}
// ----
// TypeError 6377: (61-74): Immutable variables cannot have a non-value type.
@@ -0,0 +1,9 @@
contract Contract {
struct S {
mapping(uint => address) map;
}
S immutable s;
}
// ----
// TypeError 6377: (84-97): Immutable variables cannot have a non-value type.