diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2011-03-18 09:44:07 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2011-03-18 09:44:07 +0000 |
commit | 90e5aea5379ed8197a6fa314be26f8947c6bc762 (patch) | |
tree | f57b9338dae937c6c3b6805ad4f63953531308c0 /test/files | |
parent | b3c85819bf5240f72ae7e914d64639f31a40d96a (diff) | |
download | scala-90e5aea5379ed8197a6fa314be26f8947c6bc762.tar.gz scala-90e5aea5379ed8197a6fa314be26f8947c6bc762.tar.bz2 scala-90e5aea5379ed8197a6fa314be26f8947c6bc762.zip |
close #4041. review by extempore
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/names-defaults.check | 1 | ||||
-rw-r--r-- | test/files/run/names-defaults.scala | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/names-defaults.check b/test/files/run/names-defaults.check index 2c940b6211..5656d1a276 100644 --- a/test/files/run/names-defaults.check +++ b/test/files/run/names-defaults.check @@ -119,3 +119,4 @@ List(1, 2) 3 3 3 +(1,0), (1,2) diff --git a/test/files/run/names-defaults.scala b/test/files/run/names-defaults.scala index 2d1d7417e4..4a69842650 100644 --- a/test/files/run/names-defaults.scala +++ b/test/files/run/names-defaults.scala @@ -385,6 +385,14 @@ object Test extends App { println(t3697.b(b = 1, a = 2, c = Seq(3, 4): _*)) + // #4041 + object t4041 { + def _1 = (0, 0) copy (_1 = 1) + def _2 = (1, 1) copy (_2 = 2) + } + println(""+ t4041._1 +", "+ t4041._2) + + // DEFINITIONS def test1(a: Int, b: String) = println(a +": "+ b) def test2(u: Int, v: Int)(k: String, l: Int) = println(l +": "+ k +", "+ (u + v)) |