Explorar o código

[flash] added brackets to haxe.Rest.toString() (#10011)

Aleksandr Kuzmenko %!s(int64=4) %!d(string=hai) anos
pai
achega
a309db55c6
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      std/haxe/Rest.hx

+ 5 - 1
std/haxe/Rest.hx

@@ -69,6 +69,10 @@ abstract Rest<T>(NativeRest<T>) {
 	}
 
 	public inline function toString():String {
-		return this.toString();
+		#if flash
+			return '[${this.toString()}]';
+		#else
+			return this.toString();
+		#end
 	}
 }