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

11 lines
217 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_VARIABLE
//KT-3920 Labeling information is lost when passing through some expressions
fun test() {
run f@{
val x = if (1 > 2) return@f 1 else 2
2
}
}