[FIR] Fix computing labels of anonymous functions (not lambdas)

This commit is contained in:
Dmitriy Novozhilov
2021-03-31 13:40:03 +03:00
committed by TeamCityServer
parent 8a549cafec
commit 22cbb8720a
6 changed files with 15 additions and 7 deletions
@@ -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"
}
}