aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc
diff options
context:
space:
mode:
authorEduardo Julian2017-12-05 19:09:28 -0400
committerEduardo Julian2017-12-05 19:09:28 -0400
commit0b87f118978e9971828d2c9ccabe685b0c5e4c35 (patch)
tree0a4a6f53c9b6e76a84dd566a65c72a3e08f35f17 /new-luxc/source/luxc
parent5297f5180e1540dbc9da3b57179124a1ab7b0bfb (diff)
- Fixed a bug when analysing empty records.
Diffstat (limited to '')
-rw-r--r--new-luxc/source/luxc/lang/analysis/structure.lux4
1 files changed, 4 insertions, 0 deletions
diff --git a/new-luxc/source/luxc/lang/analysis/structure.lux b/new-luxc/source/luxc/lang/analysis/structure.lux
index ce678837e..403fe4730 100644
--- a/new-luxc/source/luxc/lang/analysis/structure.lux
+++ b/new-luxc/source/luxc/lang/analysis/structure.lux
@@ -18,6 +18,7 @@
["&." module]
["la" analysis]
(analysis ["&." common]
+ [".A" primitive]
["&." inference]))))
(exception: #export Invalid-Variant-Type)
@@ -331,6 +332,9 @@
[members (normalize members)
[membersC recordT] (order members)]
(case membersC
+ (^ (list))
+ primitiveA.analyse-unit
+
(^ (list singletonC))
(analyse singletonC)