blob: 94a40f7403e8eb38c5b871f33a1621a4aa13b3e3 (
plain) (
tree)
|
|
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]): Unit = {
implicit def g2h(g: G): H = new H
new A[Int](new H, 23)
}
}
|