Files
kotlin-fork/idea/testData/intentions/removeCurlyBracesFromTemplate/necessaryBrackets2.kt
T
Tal Man 89779b5013 2 Intentions for string templates:
the first removes curly braces from a simple name variable, ${x} -> $x
and the second does the opposite $x -> ${x}
2014-02-24 21:20:40 +04:00

9 lines
138 B
Kotlin

// IS_APPLICABLE: false
fun foo() {
val x = X()
val y = "$<caret>{x.bar()}"
}
public class X() {
fun bar() : String = "bar"
}