Redundant curly braces in string template: remove braces for 'this'

#KT-32972 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-07-26 22:23:50 +09:00
committed by Dmitry Gridin
parent 8f2a73b734
commit 7c2f6ecba7
5 changed files with 24 additions and 2 deletions
@@ -0,0 +1,2 @@
// PROBLEM: none
fun String.bar() = "x <caret>${this.length}"
@@ -0,0 +1,3 @@
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
fun String.bar() = "x <caret>${this}"
@@ -0,0 +1,3 @@
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
fun String.bar() = "x $this"