aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t1766.scala
blob: 150cf149544c4e7ed59f653367420ff81d898eeb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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

}