From 53d98e7d421d55054fb0bcb606539fc36364bebf Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 28 Sep 2009 11:09:14 +0000 Subject: refined implicit resolution. --- test/files/run/arrays.scala | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/files/run/arrays.scala') diff --git a/test/files/run/arrays.scala b/test/files/run/arrays.scala index 8a2d96a2a7..e8a984dc1b 100644 --- a/test/files/run/arrays.scala +++ b/test/files/run/arrays.scala @@ -158,6 +158,12 @@ object Test { c(xs) } + def checkT2368() { + val arr = Array(1, 2, 3) + arr(0) += 1 + assert(arr(0) == 1) + } + //########################################################################## // Values @@ -919,6 +925,7 @@ object Test { checkZip checkConcat + checkT2368() //###################################################################### @@ -929,3 +936,4 @@ object Test { //########################################################################## } + -- cgit v1.2.3