How about this: ``` inline fun <reified T : Any...
# getting-started
d
How about this:
Copy code
inline fun <reified T : Any> getDeclaredTypeOf(value: T) = T::class

// later:
var x: Int = 5
println(getDeclaredTypeOf(x))
👍 1