[JS IR] Generate context dependent names for anonymous objects and classes.
This commit is contained in:
committed by
Space
parent
b1643075f2
commit
a34c97ebd5
@@ -0,0 +1,13 @@
|
||||
// CHECK_FUNCTION_EXISTS: box$MyClass TARGET_BACKENDS=JS_IR
|
||||
// CHECK_FUNCTION_EXISTS: box$MyClass$ok$InternalClass TARGET_BACKENDS=JS_IR
|
||||
fun box(): String {
|
||||
class MyClass {
|
||||
fun ok(): String {
|
||||
class InternalClass {
|
||||
fun getOk(): String = "OK"
|
||||
}
|
||||
return InternalClass().getOk()
|
||||
}
|
||||
}
|
||||
return MyClass().ok()
|
||||
}
|
||||
Reference in New Issue
Block a user