We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67363b5 commit e08cb77Copy full SHA for e08cb77
tests/pos/i6849a.scala
@@ -0,0 +1,14 @@
1
+final class Foo(val value: Int)
2
+
3
+object Foo {
4
+ def unapplySeq(foo: Foo): Seq[Int] = List(foo.value)
5
+}
6
7
+object Test {
8
+ def main(args: Array[String]): Unit = {
9
+ (new Foo(3)) match {
10
+ case Foo(x, _: _*) =>
11
+ assert(x == 3)
12
+ }
13
14
tests/pos/i6849b.scala
@@ -0,0 +1,5 @@
+object A {
+ def unapplySeq(a: Any): Seq[_] = ""
+def unapply(x: Any) = x match { case A() => }
0 commit comments