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) */ } } p?.length }