Files
kotlin-fork/compiler/testData/diagnostics/tests/labels/kt3988.fir.kt
T

21 lines
325 B
Kotlin
Vendored

//KT-3988 This@label for outer function not resolved
class Comment() {
var article = ""
}
class Comment2() {
var article2 = ""
}
fun new(body: Comment.() -> Unit) = body
fun new2(body: Comment2.() -> Unit) = body
fun main() {
new {
new2 {
this@new //UNRESOLVED REFERENCE
}
}
}