diff options
Diffstat (limited to 'test/files/pos/t2660.scala')
-rw-r--r-- | test/files/pos/t2660.scala | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/files/pos/t2660.scala b/test/files/pos/t2660.scala new file mode 100644 index 0000000000..b1908b201b --- /dev/null +++ b/test/files/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 |