aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorazidar2016-01-16 14:12:14 -0800
committerazidar2016-01-16 14:28:19 -0800
commit17729b48b01db02ead9ab25a2c71e4ca8897c62e (patch)
tree9d5dfd26fdae9327dd5552fc50f68700f5ac549c /src
parent822291a9d3749c553871398d91f57528410594a4 (diff)
Fixed bug in check-init that allows it to check on non-lowered things
Diffstat (limited to 'src')
-rw-r--r--src/main/stanza/errors.stanza1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/stanza/errors.stanza b/src/main/stanza/errors.stanza
index a45e1c8c..63199b4b 100644
--- a/src/main/stanza/errors.stanza
+++ b/src/main/stanza/errors.stanza
@@ -845,6 +845,7 @@ public defn check-init (c:Circuit) :
match(e) :
(e:WRef) : name(e)
(e:WSubField) : symbol-join([get-name(exp(e)) `. name(e)])
+ (e:WSubIndex) : symbol-join([get-name(exp(e)) to-symbol("[") value(e) to-symbol("]")])
(e) : error("Shouldn't be here")
defn has-void? (e:Expression) -> True|False :
var void? = false