Files
kotlin-fork/idea/testData/resolve/partialBodyResolve/AnonymousObjects.dump
T
2014-12-18 15:48:27 +03:00

20 lines
469 B
Plaintext

Resolve target: value-parameter val p: kotlin.String?
----------------------------------------------
open class C(p: Int) {
open fun f(){}
}
fun foo(p: String?) {
/* STATEMENT DELETED: val o = object : Runnable { override fun run() { if (p == null) return print(p.size) } } */
val c = object : C(p!!.size) {
override fun f() {
super.f()
if (p == null) return
print(p.size)
}
}
<caret>p?.size
}