summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKathy Gray2016-09-09 15:08:26 +0100
committerKathy Gray2016-09-09 15:08:26 +0100
commit0d72e3906cccdb24dbf534781cbac96fafbd5ba8 (patch)
treec5a18d85d92955e2a9e5ef3976e1e5255c2dc069 /src
parent752ddc119002995e9c38a267dc690f5b8713f4b9 (diff)
Fix bug in type checking cons that put the list first instead of the new element
Diffstat (limited to 'src')
-rw-r--r--src/type_check.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type_check.ml b/src/type_check.ml
index eed53609..452971ae 100644
--- a/src/type_check.ml
+++ b/src/type_check.ml
@@ -1397,7 +1397,7 @@ let rec check_exp envs (imp_param:nexp option) (widen_num:bool) (widen_vec:bool)
let sub_effects = union_effects ef ef_i in
let (t',cs',ef',e') =
type_coerce (Expr l) d_env Require false false b_env lt
- (E_aux(E_cons(ls',i'),(l,simple_annot_efr lt sub_effects))) expect_t in
+ (E_aux(E_cons(i',ls'),(l,simple_annot_efr lt sub_effects))) expect_t in
(e',t',t_env,cs@cs'@cs_i,nob,union_effects ef' sub_effects)
| E_record(FES_aux(FES_Fexps(fexps,_),l')) ->
let u,_ = get_abbrev d_env expect_t in