// WITH_STDLIB // ISSUE: KT-57288 import kotlin.properties.ReadWriteProperty interface Delegate : ReadWriteProperty { infix fun resource(factory: Factory): Delegate } interface Factory interface Some fun Self.delegateOf(clazz: Class): Delegate = null!! abstract class SomeImpl : Some { abstract val type: Class var bundle by delegateOf(type) resource getFactory() fun , T : Some> getFactory(): Factory = null!! }