Fix ICE when a constant variable declaration forward references a struct

This commit is contained in:
Marenz
2022-01-17 13:24:14 +01:00
parent 7b58afa94c
commit 0004ad8764
16 changed files with 25 additions and 31 deletions
@@ -1,4 +1,4 @@
struct S { uint x; }
S constant s;
// ----
// TypeError 9259: (21-33): Constants of non-value type not yet implemented.
// TypeError 9259: (21-33): Only constants of value type and byte arrays are implemented.