aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/t1766.scala
blob: ff81da3f8e68e0080f51578c3131683fe41fbc71 (plain) (tree)


















                                               
import scala.language.{ reflectiveCalls }

object Test extends App {

  class C(s: String) {

    def this(i: Int) = this("bar")

    def f = {
      val v: { def n: Int } = new { val n = 3 }
      v.n
    }

  }

  new C("foo").f

}