[FIR] KT-55666: Support labels to local functions
^KT-55666 Fixed
This commit is contained in:
committed by
Space Team
parent
f4cda71d9e
commit
ff96033e95
+19
@@ -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()
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user