Files
kotlin/idea/testData/refactoring/inline/function/InStringTemplates.kt
2017-05-26 16:37:37 +03:00

14 lines
192 B
Kotlin
Vendored

class X(val v: Int) {
fun <caret>foo() {
println("foo()")
return v
}
}
fun X.f1() {
println("Value: ${foo()}")
}
fun f2(x: X) {
println("Value: ${x.foo()}")
}