Files
kotlin-fork/compiler/testData/writeFlags/callableReference/visibility/propertyReference.kt
T
Steven Schäfer ee45933e33 JVM IR: Create local classes in PropertyReferenceLowering
In particular, we should not cache classes or instances for property
references, since they may be used inside of inline funtions. This also
allows us to mark the $$delegatedProperties array as package private.
2019-09-06 12:12:58 +02:00

10 lines
154 B
Kotlin
Vendored

class A {
val foo = ""
val bar = A::foo
}
// TESTED_OBJECT_KIND: class
// TESTED_OBJECTS: A$bar$1
// FLAGS: ACC_FINAL, ACC_SUPER, ACC_SYNTHETIC