IR: avoid name clashes between raised local functions.

This commit is contained in:
Georgy Bronnikov
2020-01-16 17:50:57 +03:00
parent 4e0b54e1a6
commit 1c527fc159
8 changed files with 49 additions and 2 deletions
@@ -0,0 +1,12 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun test(b: Boolean): String {
if (b) {
fun result() = "OK"
return result()
} else {
fun result() = "Fail"
return result()
}
}
fun box(): String = test(true)