Files
kotlin-fork/idea/testData/resolve/partialBodyResolve/AnonymousObjects.dump
T

19 lines
545 B
Plaintext
Vendored

Resolve target: value-parameter 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.length) } } */
val c = object : C(p!!.size) {
override fun f() {
/* STATEMENT DELETED: super.f() */
/* STATEMENT DELETED: if (p == null) return */
/* STATEMENT DELETED: print(p.length) */
}
}
<caret>p?.length
}