Files
kotlin-fork/idea/testData/inspectionsLocal/complexRedundantLet/functionInVariableCall.kt
T
2019-06-25 14:37:04 +07:00

7 lines
119 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
class Foo(val bar: () -> Int)
fun bar(foo: Foo?) {
foo?.<caret>let { it.bar() }
}