salomonbrys
10/22/2015, 3:54 PMkotlin
public inline fun <reified T> myFunction() {
when (T) {
is String -> println("String")
is Int -> println("Int")
else -> println("...other")
}
}
But it's not correct. Any way to get the same semantic ?