Files
kotlin-fork/compiler/testData/diagnostics/tests/labels/kt3988.kt
T
Alexey Sedunov 9fee8600cb Pseudocode: Do not generate implicit return instruction inside of
Unit-typed lambdas
 #KT-5549 Fixed
2014-08-05 18:14:40 +04:00

21 lines
368 B
Kotlin

//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(args: Array<String>) {
new {
new2 {
<!UNUSED_EXPRESSION!>this@new<!> //UNRESOLVED REFERENCE
}
}
}