ReplaceToStringWithStringTemplateInspection: insert curly braces if needed

#KT-36735 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-02-18 01:20:24 +09:00
committed by Vladimir Dolzhenko
parent c87bc2123c
commit ef1e54eda9
4 changed files with 17 additions and 5 deletions
@@ -0,0 +1,3 @@
data class Num(val x: Int)
fun demo(x: Int) = Num(x).toString()<caret>
@@ -0,0 +1,3 @@
data class Num(val x: Int)
fun demo(x: Int) = "${Num(x)}"