69e5444ddf
#KT-1703 Fixed #KT-361 Fixed #KT-3920 Fixed #KT-3988 Fixed #KT-4247 Fixed #KT-4586 Fixed #KT-4603 Fixed #KT-591 Fixed
11 lines
244 B
Kotlin
11 lines
244 B
Kotlin
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
//KT-3920 Labeling information is lost when passing through some expressions
|
|
|
|
fun test() {
|
|
run @f{ (): Int ->
|
|
val x = if (1 > 2) return@f 1 else 2
|
|
2
|
|
}
|
|
}
|
|
|
|
fun <T> run(f: () -> T): T = f() |