Files
kotlin-fork/compiler/testData/diagnostics/tests/labels/kt591.kt
T
2015-04-29 14:03:11 +03:00

11 lines
309 B
Kotlin
Vendored

//KT-591 Unresolved label in valid code
fun test() {
val <!UNUSED_VARIABLE!>a<!>: (Int?).() -> Unit = a@{
if (this != null) {
val <!UNUSED_VARIABLE!>b<!>: String.() -> Unit = {
<!DEBUG_INFO_SMARTCAST!>this@a<!>.times(5) // a@ Unresolved
}
}
}
}