FIR: cache properties in use-site scope properly
This commit is contained in:
committed by
teamcity
parent
f2c734fc02
commit
6eaeada1e6
@@ -0,0 +1,27 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
|
||||
interface PsiOwner {
|
||||
var psi: String?
|
||||
}
|
||||
|
||||
class PsiOwnerImpl(override var psi: String? = null) : PsiOwner
|
||||
|
||||
interface JKElement
|
||||
|
||||
interface JKFormattingOwner
|
||||
|
||||
abstract class JKTreeElement : JKElement, JKFormattingOwner
|
||||
|
||||
abstract class JKDeclaration : JKTreeElement(), PsiOwner by PsiOwnerImpl()
|
||||
|
||||
interface JKAnnotationListOwner : JKFormattingOwner
|
||||
|
||||
open class JKVariable : JKDeclaration(), JKAnnotationListOwner
|
||||
|
||||
class JKEnumConstant : JKVariable()
|
||||
|
||||
fun box(): String {
|
||||
val constant = JKEnumConstant().also { it.psi = "OK" }
|
||||
return constant.psi!!
|
||||
}
|
||||
Reference in New Issue
Block a user