Hello! I have something like: ``` inline fun <r...
# announcements
m
Hello! I have something like:
Copy code
inline fun <reified T> foo() {
    when(T::class) {
        Long::class -> {}
        String::class -> {}
    }
}
Is there any better way to express the same thing? Basically I would like to check if T is some type. Is it possible to do it without reflection?