summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKathy Gray2016-03-09 14:56:37 +0000
committerKathy Gray2016-03-09 14:56:37 +0000
commit5cc678583c54285a64ffe066cd0ff9696282a8a6 (patch)
tree8aa11360a1e41b475755b4337a4043c62d0652d6 /src
parent149eeaf70895ac0bcfb779e28fa0fb54cc6386d7 (diff)
Fix tag error on register as function parameter
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 d7a8eaf9..e34b0716 100644
--- a/src/type_check.ml
+++ b/src/type_check.ml
@@ -530,7 +530,7 @@ let rec check_exp envs (imp_param:nexp option) (widen:bool) (expect_t:t) (E_aux(
| Tfn _,_ -> typ_error l
("Identifier " ^ (id_to_string id) ^ " is bound to a function and cannot be used as a value")
| Tapp("register",[TA_typ(t')]),Tapp("register",[TA_typ(expect_t')]) ->
- let tannot = Base(([],t),Emp_global,cs,pure_e,pure_e,bounds) in
+ let tannot = Base(([],t),tag,cs,pure_e,pure_e,bounds) in
let t',cs' = type_consistent (Expr l) d_env Require false t' expect_t' in
(rebuild tannot,t,t_env,cs@cs',bounds,ef)
| Tapp("register",[TA_typ(t')]),Tuvar _ ->