aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
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/pos
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/pos')
-rw-r--r--tests/pos/t7296.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/t7296.scala b/tests/pos/t7296.scala
new file mode 100644
index 000000000..fcba17c08
--- /dev/null
+++ b/tests/pos/t7296.scala
@@ -0,0 +1,7 @@
+// Fails Ycheck
+object Test {
+ type A = Int
+ // Emits the implementation restriction but then proceeds to crash
+ // when creating the Foo.unapply.
+ case class Foo(a: A, b: A, c: A, d: A, e: A, f: A, g: A, h: A, i: A, j: A, k: A, l: A, m: A, n: A, o: A, p: A, q: A, r: A, s: A, t: A, u: A, v: A, w: A, x: A, y: A, Z: A)
+}