Redundant curly braces in string template: do not report labeled 'this'
#KT-35475 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
80d29cdad1
commit
fabeca5955
+12
@@ -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) {}
|
||||
Reference in New Issue
Block a user