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

24 lines
614 B
Plaintext
Vendored

Resolve target: value-parameter p: kotlin.String?
----------------------------------------------
open class C(p: Int) {
open fun f(){}
}
fun foo(p: String?) {
val o = object : Runnable {
override fun run() {
/* STATEMENT DELETED: if (p == null) return */
/* STATEMENT DELETED: 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
}