tag¶
[jvm, common]\ [jvm]\ fun <T> tag(type: Class<out T>): T?
[common]\ expect fun <T : Any> tag(type: KClass<T>): T?
Returns the tag attached with type as a key, or null if no tag is attached with that key.
[common]\ expect inline fun <T : Any> tag(): T?
Returns the tag attached with T as a key, or null if no tag is attached with that key.
[jvm, nonJvm]\ [jvm]\
@JvmName(name = "reifiedTag")
actual inline fun <T : Any> tag(): T?
[nonJvm]\ actual inline fun <T : Any> tag(): T?
[jvm, nonJvm]\ actual fun <T : Any> tag(type: KClass<T>): T?