summaryrefslogtreecommitdiff
path: root/test/files/run/bug1766.scala
blob: 901f9ae6647c047667104c9ce9714e511b0df07b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
object Test extends Application {

  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

}