Explorar o código

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

Simon Krajewski %!s(int64=11) %!d(string=hai) anos
pai
achega
eb19453887
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
 						| _ -> ()
 					) 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
 			loop t