浏览代码

use get_underlying_type instead of manually applying abstract type parameters (closes #2657)

Simon Krajewski 11 年之前
父节点
当前提交
eb19453887
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      typer.ml

+ 2 - 2
typer.ml

@@ -2908,8 +2908,8 @@ and type_expr ctx (e,p) (with_type:with_type) =
 						| TMono _ -> unify ctx t2 t1 p
 						| TMono _ -> unify ctx t2 t1 p
 						| _ -> ()
 						| _ -> ()
 					) args args2;
 					) args args2;
-				| TAbstract({a_this = ta} as a,tl) ->
-					loop (apply_params a.a_types tl ta)
+				| TAbstract(a,tl) ->
+					loop (Codegen.Abstract.get_underlying_type a tl)
 				| _ -> ())
 				| _ -> ())
 			in
 			in
 			loop t
 			loop t