Jan
02/25/2019, 12:13 PMkarelpeeters
02/25/2019, 12:23 PMT, you're getting the class of the value that currently happens to be stored in value.karelpeeters
02/25/2019, 12:23 PMvalue == null?karelpeeters
02/25/2019, 12:24 PMClass<T> constructor parameter? You can make it a bit nicer to call with a reified factory function.diesieben07
02/25/2019, 12:30 PM::value.returnType would be whatever type value is declared as in the source. In this case that would be T, with returnType.jvmErasure you can find the closest approximation that's known for T at runtime, in this case Any::classJan
02/25/2019, 1:05 PM