Skip to content

Commit

Permalink
new_tvar was too restrictive
Browse files Browse the repository at this point in the history
  • Loading branch information
pikatchu committed Apr 15, 2011
1 parent 6181436 commit eae016a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compiler/naming.ml
Expand Up @@ -181,10 +181,11 @@ end = struct
let t, env, id = new_id t env x in
{ t with types = env }, id

let new_tvar t x =
let new_tvar t (p, x) =
let env = t.tvars in
let t, env, id = new_id t env x in
{ t with tvars = env }, id
let id = Ident.make x in
let env = SMap.add x id env in
{ t with tvars = env }, (p, id)

let new_cstr t x =
let env = t.cstrs in
Expand Down

0 comments on commit eae016a

Please sign in to comment.