Replace with string templates: add curly braces if needed
#KT-37173 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
8d3e41ae60
commit
bf3e739edf
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
fun main() {
|
||||
val id = "abc"
|
||||
val date = "123"
|
||||
val s = String.format(<caret>"%s_%s_%s", id, date, id)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
fun main() {
|
||||
val id = "abc"
|
||||
val date = "123"
|
||||
val s = "${id}_${date}_$id"
|
||||
}
|
||||
Reference in New Issue
Block a user