Files
kotlin-fork/idea/testData/inspectionsLocal/replaceStringFormatWithLiteral/rawStringFormat.kt
T
Toshiaki Kameyama 6675d7814c KT-14779 Inspection to replace String.format with string templates (#1645)
* Add inspection to replace String.format with string templates #KT-14779 Fixed

* KT-14779 Fixed
2018-06-20 16:23:04 +03:00

9 lines
147 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
fun test() {
val foo = 1
val bar = 2
<caret>String.format("""foo is %s, bar is %s.%n""", foo, bar)
}