Fix ICE caused by const structs with mappings

This commit is contained in:
a3d4
2021-01-12 18:39:54 +01:00
committed by chriseth
parent fa28e48415
commit 35a25b107f
14 changed files with 35 additions and 16 deletions
@@ -1,3 +1,3 @@
mapping(uint => uint) constant b = b;
// ----
// TypeError 9259: (0-36): Constants of non-value type not yet implemented.
// DeclarationError 9259: (0-36): Constants of non-value type not yet implemented.
@@ -1,5 +1,4 @@
struct S { uint x; }
S constant s;
// ----
// TypeError 9259: (21-33): Constants of non-value type not yet implemented.
// TypeError 4266: (21-33): Uninitialized "constant" variable.
// DeclarationError 9259: (21-33): Constants of non-value type not yet implemented.