Explorar o código

[std] a bit of safety here

Rudy Ges hai 1 ano
pai
achega
fd51af810f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/haxe/Log.hx

+ 1 - 1
std/haxe/Log.hx

@@ -30,7 +30,7 @@ class Log {
 	/**
 		Format the output of `trace` before printing it.
 	**/
-	public static function formatOutput(v:Dynamic, infos:PosInfos):String {
+	public static function formatOutput(v:Dynamic, infos:Null<PosInfos>):String {
 		var str = Std.string(v);
 		if (infos == null)
 			return str;