blob: 2afd883755d5b523130a8cedee848c99eedc4847 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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
}
|