Files
kotlin-fork/idea/testData/refactoring/rename/inplace/InvokeToGetWithSafeQualifiedExpr.kt
T
2018-02-09 14:17:39 +03:00

17 lines
260 B
Kotlin
Vendored

class WInvoke {
operator fun <caret>invoke(body: () -> Unit) { }
}
class Second {
val testInvoke = WInvoke()
}
fun boo(s: Second?, body: () -> Unit) { }
fun foo(s: Second?) {
boo(s) {
s?.testInvoke {
"Hello"
}
}
}