Files
kotlin-fork/idea/testData/inspectionsLocal/simpleRedundantLet/extensionWithNullableReceiverCall3.kt
T
2020-03-02 10:21:47 +07:00

14 lines
182 B
Kotlin
Vendored

// WITH_RUNTIME
// PROBLEM: none
class A(val b: B?)
class B
class C(val d: D)
class D
fun B?.getC(): C {
return C(D())
}
fun test(a: A?) {
a?.let<caret> { it.b.getC().d }
}