diff options
Diffstat (limited to '')
| -rw-r--r-- | new-luxc/source/luxc/lang/analysis/structure.lux | 11 | 
1 files changed, 5 insertions, 6 deletions
| diff --git a/new-luxc/source/luxc/lang/analysis/structure.lux b/new-luxc/source/luxc/lang/analysis/structure.lux index fb521d02e..ce678837e 100644 --- a/new-luxc/source/luxc/lang/analysis/structure.lux +++ b/new-luxc/source/luxc/lang/analysis/structure.lux @@ -156,10 +156,9 @@          ## blurring the line between what was wanted (the separation)          ## and what was analysed.          [tailT tailC] -        (do @ -          [g!tail (macro.gensym "tail")] +        (macro.with-gensyms [g!tail]            (&.with-type tailT -            (analyse (` ("lux case" [(~@ tailC)] +            (analyse (` ("lux case" [(~+ tailC)]                           (~ g!tail)                           (~ g!tail))))))          )))) @@ -170,7 +169,7 @@      [expectedT macro.expected-type]      (&.with-stacked-errors        (function [_] (Cannot-Analyse-Tuple (format "      Type: " (%type expectedT) "\n" -                                                  "Expression: " (%code (` [(~@ membersC)]))))) +                                                  "Expression: " (%code (` [(~+ membersC)])))))        (case expectedT          (#.Product _)          (analyse-typed-product analyse membersC) @@ -219,7 +218,7 @@                _                (&.throw Invalid-Tuple-Type (format "      Type: " (%type expectedT) "\n" -                                                  "Expression: " (%code (` [(~@ membersC)])))))) +                                                  "Expression: " (%code (` [(~+ membersC)]))))))            _            (case (type.apply (list inputT) funT) @@ -232,7 +231,7 @@          _          (&.throw Invalid-Tuple-Type (format "      Type: " (%type expectedT) "\n" -                                            "Expression: " (%code (` [(~@ membersC)])))) +                                            "Expression: " (%code (` [(~+ membersC)]))))          ))))  (def: #export (analyse-tagged-sum analyse tag valueC) | 
