Files
kotlin-fork/idea/testData/inspectionsLocal/replaceStringFormatWithLiteral/simple.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

12 lines
175 B
Kotlin
Vendored

// WITH_RUNTIME
// HIGHLIGHT: INFORMATION
fun test() {
val foo = 1
<caret>String.format("foo is %s, bar is %s.", foo, Bar().value)
}
class Bar {
val value = 2
}