Parcourir la source

haxe.Log instead of Log.

Nicolas Cannasse il y a 19 ans
Parent
commit
4139506e50
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -1308,7 +1308,7 @@ and type_expr ctx ?(need_val=true) (e,p) =
 		else
 		let params = (match el with [] -> [] | _ -> ["customParams",(EArrayDecl el , p)]) in
 		let infos = mk_infos ctx p params in
-		type_expr ctx (ECall ((EField ((EConst (Type "Log"),p),"trace"),p),[e;EUntyped infos,p]),p)
+		type_expr ctx (ECall ((EField ((EType ((EConst (Ident "haxe"),p),"Log"),p),"trace"),p),[e;EUntyped infos,p]),p)
 	| ECall ((EConst (Ident "type"),_),[e]) ->
 		let e = type_expr ctx e in
 		ctx.warn (s_type (print_context()) e.etype) e.epos;