bbaldino
07/16/2020, 3:53 PMKType?diesieben07
07/16/2020, 3:55 PMjava.lang.reflect.Type? A java.lang.Class?bbaldino
07/16/2020, 3:55 PMjava.lang.Class I thinkdiesieben07
07/16/2020, 3:58 PMClass. Turn it into a KClass using cls.kotlin and then into a KType using createType or starProjectedType depending on your needsbbaldino
07/16/2020, 4:00 PMcreateType, but was worried about whether or not I'd be able to infer the correct arguments (i.e. be able to properly differentiate List<Int> from List<Double>)diesieben07
07/16/2020, 4:01 PMjava.lang.Class does not represent this information. The Class for List<Int> and List<Double> is the same, both are just Listbbaldino
07/16/2020, 4:02 PMdiesieben07
07/16/2020, 4:03 PMKClass does not either. Only KType does, that's why it existsbbaldino
07/16/2020, 4:03 PMList<Int> and List<Double> I thought (I'll have to double check)diesieben07
07/16/2020, 4:03 PMKClass or Class, you need KType or java.lang.reflect.Type for that.bbaldino
07/16/2020, 4:04 PMbbaldino
07/16/2020, 4:04 PMbbaldino
07/16/2020, 4:09 PMjava.lang.reflect.Type