Make ContactList.delegate internal

This commit is contained in:
Him188 2019-11-28 21:34:17 +08:00
parent 8226b04602
commit e4e519eb36

View File

@ -59,7 +59,7 @@ inline fun <R> Contact.withSession(block: BotSession.() -> R): R {
/** /**
* 只读联系人列表 * 只读联系人列表
*/ */
class ContactList<C : Contact> internal constructor(private val delegate: MutableContactList<C>) : Map<UInt, C> by delegate { class ContactList<C : Contact> internal constructor(internal val delegate: MutableContactList<C>) : Map<UInt, C> by delegate {
override fun toString(): String = delegate.toString() override fun toString(): String = delegate.toString()
} }