Make typeOf stable since 1.6

#KT-45396 Fixed
This commit is contained in:
Alexander Udalov
2021-07-23 15:55:25 +02:00
parent 98be418245
commit 0b11d4214c
48 changed files with 8 additions and 68 deletions
@@ -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.")