[FIR] KT-55666: Support labels to local functions

^KT-55666 Fixed
This commit is contained in:
Nikolay Lunyak
2023-01-18 13:28:52 +02:00
committed by Space Team
parent f4cda71d9e
commit ff96033e95
8 changed files with 50 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
// FIR_IDENTICAL
inline fun l2f1(p: () -> Unit) {}
fun label2simple1() {
l2f1 { return@label2simple1 }
fun local() {
l2f1 { return@local }
}
labelLocal@ fun labelledLocal() {
l2f1 { return@labelLocal }
}
}
fun main() {
label2simple1()
}
+5
View File
@@ -0,0 +1,5 @@
package
public inline fun l2f1(/*0*/ p: () -> kotlin.Unit): kotlin.Unit
public fun label2simple1(): kotlin.Unit
public fun main(): kotlin.Unit