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

12 lines
161 B
Kotlin
Vendored

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