[FIR] Fix computing labels of anonymous functions (not lambdas)
This commit is contained in:
committed by
TeamCityServer
parent
8a549cafec
commit
22cbb8720a
+1
-2
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
fun simple() = fun (): Boolean { return true }
|
||||
|
||||
fun withLabel() = l@ fun (): Boolean { return@l true }
|
||||
@@ -8,4 +7,4 @@ fun box(): String {
|
||||
if (!withLabel()()) return "Test withLabel failed"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user