Sam Garfinkel
04/15/2020, 4:30 PMKType from an Any (or the corresponding KClass<*>) or am I stuck with only having access to the KClass<*>?Zach Klippenstein (he/him) [MOD]
04/15/2020, 4:36 PMstarProjectedType?Sam Garfinkel
04/15/2020, 4:38 PMSam Garfinkel
04/15/2020, 4:38 PMZach Klippenstein (he/him) [MOD]
04/15/2020, 4:40 PMZach Klippenstein (he/him) [MOD]
04/15/2020, 4:41 PMSam Garfinkel
04/15/2020, 4:42 PMZach Klippenstein (he/him) [MOD]
04/15/2020, 4:44 PMtypeOf function will give you specific type parameters, but it does that using reified, which means you have to actually know the full type when you call it, so you can’t use it with an instance value.