Files
kotlin-fork/compiler/testData/diagnostics/tests/labels/kt591.fir.kt
T
2020-03-03 09:57:41 +03:00

11 lines
238 B
Kotlin
Vendored

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