https://kotlinlang.org logo
#reflect
Title
# reflect
a

adambl4

05/10/2017, 1:21 PM
this code throws the
NotImplementedError
since
1.1.2
. Is this somewhere documented?
Copy code
test<Boolean>()

inline fun <reified T : Any> test() {
        when(T::class) {
            Boolean::class -> {}
            else -> throw NotImplementedError()
        }
    }
u

udalov

05/15/2017, 8:15 AM
5 Views