Implement typeOf intrinsic on JVM
#KT-29915 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package kotlin.reflect
|
||||
|
||||
@Suppress("unused") // KT-12448
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalStdlibApi
|
||||
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