aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t7296.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t7296.scala')
-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)
+}