Files
kotlin-fork/idea/testData/intentions/removeCurlyBracesFromTemplate/necessaryBrackets5.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

5 lines
79 B
Kotlin

// IS_APPLICABLE: false
fun foo() {
val x = 3
val y = "$<caret>{x}_y"
}