Redundant toString() in string template: highlight selector only
And not the receiver. So #KT-18253 Fixed
This commit is contained in:
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.RemoveToStringInStringTemplateInspection
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// PROBLEM: none
|
||||
|
||||
fun foo(a: Int, b: Int) = a + b
|
||||
|
||||
fun test(): String {
|
||||
return "Foo: ${<caret>foo(0, 4).toString()}"
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun foo(a: Int, b: Int) = a + b
|
||||
|
||||
fun test(): String {
|
||||
return "Foo: ${foo(0, 4).<caret>toString()}"
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun foo(a: Int, b: Int) = a + b
|
||||
|
||||
fun test(): String {
|
||||
return "Foo: ${foo(0, 4)}"
|
||||
}
|
||||
Reference in New Issue
Block a user