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
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
e41a34af88
commit
6675d7814c
+9
@@ -0,0 +1,9 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test() {
|
||||
val foo = 1
|
||||
val bar = 2
|
||||
|
||||
<caret>String.format("""foo is %s, bar is %s.%n""", foo, bar)
|
||||
}
|
||||
Reference in New Issue
Block a user