JVM IR: Optimize static property references (KT-36975)
This commit is contained in:
committed by
Alexander Udalov
parent
669fda6b77
commit
4792be2522
@@ -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
|
||||
Reference in New Issue
Block a user