Redundant curly braces in string template: remove braces for 'this'
#KT-32972 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
8f2a73b734
commit
7c2f6ecba7
+2
@@ -0,0 +1,2 @@
|
||||
// PROBLEM: none
|
||||
fun String.bar() = "x <caret>${this.length}"
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
|
||||
|
||||
fun String.bar() = "x <caret>${this}"
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
|
||||
|
||||
fun String.bar() = "x $this"
|
||||
Reference in New Issue
Block a user