diff options
Diffstat (limited to 'test/files/run/names-defaults.scala')
-rw-r--r-- | test/files/run/names-defaults.scala | 8 |
1 files changed, 8 insertions, 0 deletions
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)) |