DeprecatedCallableAddReplaceWithIntention: fixed for string templates in expression
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<caret>@deprecated("")
|
||||
fun foo(p: Int) {
|
||||
bar("\"$p\"\n1\r2\t3")
|
||||
bar("\"\"\n1\r2\t3")
|
||||
}
|
||||
|
||||
fun bar(s: String){}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
@deprecated("", ReplaceWith("bar(\"\\\"$p\\\"\\n1\\r2\\t3\")"))
|
||||
@deprecated("", ReplaceWith("bar(\"\\\"\\\"\\n1\\r2\\t3\")"))
|
||||
fun foo(p: Int) {
|
||||
bar("\"$p\"\n1\r2\t3")
|
||||
bar("\"\"\n1\r2\t3")
|
||||
}
|
||||
|
||||
fun bar(s: String){}
|
||||
@@ -0,0 +1,6 @@
|
||||
<caret>@deprecated("")
|
||||
fun foo(p: Int) {
|
||||
bar("$p ${p + 1} $0")
|
||||
}
|
||||
|
||||
fun bar(s: String){}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
@deprecated("", ReplaceWith("bar(\"\$p \${p + 1} $0\")"))
|
||||
fun foo(p: Int) {
|
||||
bar("$p ${p + 1} $0")
|
||||
}
|
||||
|
||||
fun bar(s: String){}
|
||||
Reference in New Issue
Block a user