2
0
Эх сурвалжийг харах

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

Aleksandr Kuzmenko 4 жил өмнө
parent
commit
a309db55c6
1 өөрчлөгдсөн 5 нэмэгдсэн , 1 устгасан
  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
 	}
 }