aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/t1766.scala
blob: 150cf149544c4e7ed59f653367420ff81d898eeb (plain) (tree)
1
2
3
4


                                         
                                             














                                               
import scala.language.{ reflectiveCalls }

object Test extends dotty.runtime.LegacyApp {

  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

}