diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2009-11-24 10:15:58 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2009-11-24 10:15:58 +0000 |
commit | cc44d56c425b23924744dae3456db8a2176f982d (patch) | |
tree | faf5328f530466aad7d8150324385f3210d65c99 | |
parent | c46145f0408b30bbd126d293ccf67792f307479a (diff) | |
download | scala-cc44d56c425b23924744dae3456db8a2176f982d.tar.gz scala-cc44d56c425b23924744dae3456db8a2176f982d.tar.bz2 scala-cc44d56c425b23924744dae3456db8a2176f982d.zip |
pending test: see #2660, #2691
-rw-r--r-- | test/pending/pos/t2660.scala | 25 | ||||
-rw-r--r-- | test/pending/pos/t2691.scala | 9 |
2 files changed, 34 insertions, 0 deletions
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 |