aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/pos/t2660.scala
blob: d42dcc72b5d623f51473632aec02352aeffc63db (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(new H, 23)
  }
}