Change class loader in ir interpreter that is used to create proxy obj

#KT-54509 Fixed
This commit is contained in:
Ivan Kylchik
2022-10-17 17:17:55 +02:00
committed by Space Team
parent b76fdb2efa
commit 1ce99db830
6 changed files with 50 additions and 1 deletions
@@ -0,0 +1,17 @@
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
object Test {
fun foo(): String = "foo " + this
fun bar(): String = "bar $this"
fun baz(): String = "baz " + this.toString()
}
fun box(): String {
if (!Test.foo().startsWith("foo ")) return "Fail ${Test.foo()}"
if (!Test.bar().startsWith("bar ")) return "Fail ${Test.bar()}"
if (!Test.baz().startsWith("baz ")) return "Fail ${Test.baz()}"
return "OK"
}