JVM IR: Optimize static property references (KT-36975)

This commit is contained in:
Steven Schäfer
2020-09-07 17:16:23 +02:00
committed by Alexander Udalov
parent 669fda6b77
commit 4792be2522
9 changed files with 107 additions and 18 deletions

View File

@@ -0,0 +1,10 @@
// FILE: test.kt
class A(val value: String)
fun box(): String {
val ref = A::value
return ref(A("OK"))
}
// Check that non-bound callable references are generated as singletons
// 1 GETSTATIC TestKt\$box\$ref\$1.INSTANCE