[JS IR] Generate context dependent names for anonymous objects and classes.

This commit is contained in:
Alexander Korepanov
2021-12-02 00:25:00 +03:00
committed by Space
parent b1643075f2
commit a34c97ebd5
10 changed files with 167 additions and 3 deletions
@@ -0,0 +1,15 @@
class MyClass {
companion object {
fun ok(): String {
val okMaker = object {
fun getOk(): String = "OK"
}
return okMaker.getOk()
}
}
}
// CHECK_FUNCTION_EXISTS: MyClass$Companion$ok$okMaker$1 TARGET_BACKENDS=JS_IR
fun box(): String {
return MyClass.ok()
}