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

25 lines
488 B
Plaintext

Resolve target: value-parameter val p: kotlin.String?
----------------------------------------------
open class C(p: Int) {
open fun f(){}
}
fun foo(p: String?) {
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
}