Skip to content

Commit

Permalink
added the subtyping check (even if the quality of error messages is q…
Browse files Browse the repository at this point in the history
…uestionable)
  • Loading branch information
pikatchu committed Apr 22, 2011
1 parent 971e8e0 commit 44e245b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/typing.ml
Expand Up @@ -350,8 +350,7 @@ and def env (fid, p, e) =
let tyl = ExpandType.type_expr_list !env tyl in
let rty = ExpandType.type_expr_list !env rty in
let fty' = fp, Tfun (k, tyl, rty) in
(* TODO error messages are bad *)
(* SubType.type_expr fty fty'; *)
SubType.type_expr fty fty';
k, fid, p, (rty, e)
| _ -> assert false

Expand Down

0 comments on commit 44e245b

Please sign in to comment.