summaryrefslogtreecommitdiff
path: root/test/pending/pos/t2660.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2009-11-24 10:15:58 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2009-11-24 10:15:58 +0000
commitcc44d56c425b23924744dae3456db8a2176f982d (patch)
treefaf5328f530466aad7d8150324385f3210d65c99 /test/pending/pos/t2660.scala
parentc46145f0408b30bbd126d293ccf67792f307479a (diff)
downloadscala-cc44d56c425b23924744dae3456db8a2176f982d.tar.gz
scala-cc44d56c425b23924744dae3456db8a2176f982d.tar.bz2
scala-cc44d56c425b23924744dae3456db8a2176f982d.zip
pending test: see #2660, #2691
Diffstat (limited to 'test/pending/pos/t2660.scala')
-rw-r--r--test/pending/pos/t2660.scala25
1 files changed, 25 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