https://kotlinlang.org logo
a

Andreas Sinz

11/06/2017, 12:40 PM
@katz there are no macro's in kotlin, but you can probably do something like
inline fun <reified T> Tof() = object : TypeOf<T>() { }
and then
fun getCities() = request(Tof<ArrayList<CityInfo>>(), "catalogue.Cities")