Make typeOf stable since 1.6
#KT-45396 Fixed
This commit is contained in:
@@ -8,7 +8,7 @@ package kotlin.reflect
|
||||
/**
|
||||
* Returns a runtime representation of the given reified type [T] as an instance of [KType].
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalStdlibApi
|
||||
@SinceKotlin("1.6")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public inline fun <reified T> typeOf(): KType =
|
||||
throw UnsupportedOperationException("This function is implemented as an intrinsic on all supported platforms.")
|
||||
|
||||
Reference in New Issue
Block a user