blob: 7d12451092669ce5fb70172bd76d7d0fc88e4635 (
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
}
|