From d8e882ad5ccd7006a4304d9378a7a9328f55e173 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 13 Jul 2011 06:58:04 +0000 Subject: Bounded wildcard types arising during pattern t... Bounded wildcard types arising during pattern type inference can cause unnecessary crashes. Closes #1048, review by odersky. --- test/pending/pos/unapplyGeneric.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/pending/pos/unapplyGeneric.scala (limited to 'test/pending') diff --git a/test/pending/pos/unapplyGeneric.scala b/test/pending/pos/unapplyGeneric.scala new file mode 100644 index 0000000000..bf88816885 --- /dev/null +++ b/test/pending/pos/unapplyGeneric.scala @@ -0,0 +1,11 @@ +object Bar { + def unapply[A,B](bar:Bar[A,B]) = Some(bar) +} + +class Bar[A,B](val _1:A, val _2:B) extends Product2[A,B] + +object Test { + new Bar(2, 'a') match { + case Bar(x,y) => + } +} -- cgit v1.2.3