From cc44d56c425b23924744dae3456db8a2176f982d Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Tue, 24 Nov 2009 10:15:58 +0000 Subject: pending test: see #2660, #2691 --- test/pending/pos/t2660.scala | 25 +++++++++++++++++++++++++ test/pending/pos/t2691.scala | 9 +++++++++ 2 files changed, 34 insertions(+) create mode 100644 test/pending/pos/t2660.scala create mode 100644 test/pending/pos/t2691.scala diff --git a/test/pending/pos/t2660.scala b/test/pending/pos/t2660.scala new file mode 100644 index 0000000000..b1908b201b --- /dev/null +++ b/test/pending/pos/t2660.scala @@ -0,0 +1,25 @@ +package hoho + +class G + +class H extends G + +class A[T](x: T) { + + def this(y: G, z: T) = { + this(z) + print(1) + } + + def this(z: H, h: T) = { + this(h) + print(2) + } +} + +object T { + def main(args: Array[String]) { + implicit def g2h(g: G): H = new H + new A(new H, 23) + } +} \ No newline at end of file diff --git a/test/pending/pos/t2691.scala b/test/pending/pos/t2691.scala new file mode 100644 index 0000000000..ba2e52f1fe --- /dev/null +++ b/test/pending/pos/t2691.scala @@ -0,0 +1,9 @@ +object Breakdown { + def unapplySeq(x: Int): Some[List[String]] = Some(List("", "there")) +} +object Test { + 42 match { + case Breakdown("") => // needed to trigger bug + case Breakdown("", who) => println ("hello " + who) + } +} \ No newline at end of file -- cgit v1.2.3