Join Slack
looking at KType, it seems like you can actually use reflection to get generic type parameters, is t...
# getting-started
b
Bernhard
04/17/2024, 2:16 PM
looking at KType, it seems like you can actually use reflection to get generic type parameters, is that correct? it kinda weirds me out since you can't do that in java on the jvm
y
Youssef Shoaib [MOD]
04/17/2024, 2:54 PM
You can do that in Java:
https://guava.dev/releases/21.0/api/docs/com/google/common/reflect/TypeToken.html
b
Bernhard
04/17/2024, 3:10 PM
thanks
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by