aboutsummaryrefslogtreecommitdiff
path: root/tests/run/case-class-23.scala
diff options
context:
space:
mode:
authorOlivier Blanvillain <olivier.blanvillain@gmail.com>2017-04-06 18:44:21 +0200
committerOlivier Blanvillain <olivier.blanvillain@gmail.com>2017-04-06 18:54:08 +0200
commit5bf9d2b0046b60ae9fcdc218cd190e17023b4fae (patch)
tree842c4e3df808217ddebea02199a667c7de94e44b /tests/run/case-class-23.scala
parent944e677f437c39d85280c388cab000b5490e4386 (diff)
downloaddotty-5bf9d2b0046b60ae9fcdc218cd190e17023b4fae.tar.gz
dotty-5bf9d2b0046b60ae9fcdc218cd190e17023b4fae.tar.bz2
dotty-5bf9d2b0046b60ae9fcdc218cd190e17023b4fae.zip
Add tests
- t7296 & case-class-23 are moved out of pending - 1938 tests productElement > 23
Diffstat (limited to 'tests/run/case-class-23.scala')
-rw-r--r--tests/run/case-class-23.scala33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/run/case-class-23.scala b/tests/run/case-class-23.scala
new file mode 100644
index 000000000..a6d78763c
--- /dev/null
+++ b/tests/run/case-class-23.scala
@@ -0,0 +1,33 @@
+case class TwentyThree(
+ _1: Int,
+ _2: Int,
+ _3: Int,
+ _4: Int,
+ _5: Int,
+ _6: Int,
+ _7: Int,
+ _8: Int,
+ _9: Int,
+ _10: Int,
+ _11: Int,
+ _12: Int,
+ _13: Int,
+ _14: Int,
+ _15: Int,
+ _16: Int,
+ _17: Int,
+ _18: Int,
+ _19: Int,
+ _20: Int,
+ _21: Int,
+ _22: Int,
+ _23: Int
+)
+
+object Test extends dotty.runtime.LegacyApp {
+ val x = new TwentyThree(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
+ println(x._23)
+ assert(x.copy(_1 = 1) == x)
+ val TwentyThree(a, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, b) = x
+ println((a, b))
+}