diff options
author | Martin Odersky <odersky@gmail.com> | 2009-09-28 11:09:14 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-09-28 11:09:14 +0000 |
commit | 53d98e7d421d55054fb0bcb606539fc36364bebf (patch) | |
tree | be6b68360458b97ab92a0dc3e963f365ae5acd95 /test/files/run/arrays.scala | |
parent | 32cac0e3fde4a512d7322cd60146bdac7d1898d4 (diff) | |
download | scala-53d98e7d421d55054fb0bcb606539fc36364bebf.tar.gz scala-53d98e7d421d55054fb0bcb606539fc36364bebf.tar.bz2 scala-53d98e7d421d55054fb0bcb606539fc36364bebf.zip |
refined implicit resolution.
Diffstat (limited to 'test/files/run/arrays.scala')
-rw-r--r-- | test/files/run/arrays.scala | 8 |
1 files changed, 8 insertions, 0 deletions
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 { //########################################################################## } + |