Files
kotlin-fork/idea/testData/inspectionsLocal/redundantWith/notApplicable_variableFunctionCall.kt
T
2018-08-02 09:23:27 +03:00

12 lines
169 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
fun test() {
val c = MyClass()
<caret>with(c) {
println(f())
}
}
class MyClass {
val f: () -> String = { "" }
}