Redundant curly braces in string template: do not report labeled 'this'

#KT-35475 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-12-17 17:57:24 +09:00
committed by Dmitry Gridin
parent 80d29cdad1
commit fabeca5955
3 changed files with 22 additions and 2 deletions
@@ -0,0 +1,12 @@
// PROBLEM: none
fun main() {
"hello".foo()
}
fun bar(block: Int.() -> Unit) { block(42) }
fun String.foo() = bar {
println("this: <caret>${this@foo}")
}
fun println(s: String) {}