Skip to content

Commit ef520eb

Browse files
aherlihytgodzik
authored andcommitted
Check for error type before checking members of product in getUnapplySelectors
1 parent a9920b0 commit ef520eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/pos/i23156.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
object Unpack {
2+
(1, 2) match {
3+
case Unpack(first, _) => first
4+
}
5+
def unapply(e: (Int, Int)): Option[T] = ???
6+
}

0 commit comments

Comments
 (0)