From 348ff4b6176a379dba943a6b6e0dbc71410f454f Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Thu, 14 Feb 2013 15:10:58 +0100 Subject: SI-7128 Fix regression in copyToArray for empty arrays --- test/files/run/t6827.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/files') diff --git a/test/files/run/t6827.scala b/test/files/run/t6827.scala index 7e8918e3dc..8e17af09e2 100644 --- a/test/files/run/t6827.scala +++ b/test/files/run/t6827.scala @@ -28,4 +28,7 @@ object Test extends App { tryit("read -1", 0, -1) tryit("invalid read 0", 30, 0) tryit("invalid read -1", 30, -1) + + // okay, see SI-7128 + "...".toIterator.copyToArray(new Array[Char](0), 0, 0) } -- cgit v1.2.3