crummy
03/11/2021, 4:34 AMval c = Array<Int>::class
I want to get the parameterized type of c (i.e. Int). Is this possible on the JVM?Albert Chang
03/11/2021, 5:21 AMArray<Int>::class.java.componentTypecrummy
03/11/2021, 9:20 AMMap<String, Int>?Albert Chang
03/11/2021, 9:22 AMcrummy
03/11/2021, 9:24 AMtypeOf<>() gets me close, but maybe not close enough.Albert Chang
03/11/2021, 9:27 AMreified can only be used on inline function so it has nothing to do with the runtime.crummy
03/11/2021, 9:29 AMclass class kotlin.collections.Map has parameters [class kotlin.reflect.jvm.internal.KTypeParameterImpl]