From 9522a0b394273e23c3b0492f2630e600e596488e Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 24 Oct 2015 17:23:07 -0400 Subject: More Elaborate work to avoid instantiating unification variables with out-of-scope regular variables --- src/elaborate.sml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/elaborate.sml') diff --git a/src/elaborate.sml b/src/elaborate.sml index ca4e124c..1885345d 100644 --- a/src/elaborate.sml +++ b/src/elaborate.sml @@ -783,7 +783,8 @@ val sum = case c of - (L'.CRecord (_, xcs), _) => {fields = xcs, unifs = [], others = []} + (L'.CRecord (_, xcs), _) => {fields = map (fn (x, c) => (hnormCon env x, hnormCon env c)) xcs, + unifs = [], others = []} | (L'.CConcat (c1, c2), _) => let val s1 = recordSummary env c1 -- cgit v1.2.3