Hi,
I’m trying to get a KType for a generic map, and using the following example from the docs gives “Unresolved reference: typeOf”. This is with 1.6.10 so typeOf is stable. Is there something I need to enable to get typeOf working?
inline fun <reified T> renderType(): String {
val type = typeOf<T>()
return type.toString()
}
fun main() {
val fromExplicitType = typeOf<Int>()
val fromReifiedType = renderType<List<Int>>()
}