// FIR_IDENTICAL // ISSUE: KT-61075 // WITH_REFLECT import kotlin.properties.ReadWriteProperty open class BaseState interface CustomComparable annotation class XCollection fun treeSet(): ReadWriteProperty where E: BaseState, E: CustomComparable = TODO() internal class VisibleTreeState { internal class State: BaseState(), CustomComparable // K1: ok // K2: NEW_INFERENCE_ERROR @get:XCollection var expandedNodes: State by treeSet() // K1: ok // K2: NEW_INFERENCE_ERROR @set:XCollection var selectedNodes: State by treeSet() }