diff options
Diffstat (limited to 'tests/pending/pos/t5022.scala')
-rw-r--r-- | tests/pending/pos/t5022.scala | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/pending/pos/t5022.scala b/tests/pending/pos/t5022.scala deleted file mode 100644 index 5db71c656..000000000 --- a/tests/pending/pos/t5022.scala +++ /dev/null @@ -1,22 +0,0 @@ -class ForSomeVsUnapply { - def test: Unit = { - def makeWrap: Wrap = ??? - def useRep[e](rep: (e, X[e])) = () - - val repUnapply = Wrap.unapply(makeWrap).get - useRep(repUnapply) // okay - - val Wrap(rep0) = makeWrap - useRep(rep0) // error - - val rep = makeWrap match { - case Wrap(r) => r - }; - - useRep(rep) // error - } -} - -class X[e] - -case class Wrap(rep: (e, X[e]) forSome { type e }) |