Join Slack
Powered by
but what should be the key type for the map ?
# announcements
d
droidrcc
05/03/2018, 9:33 AM
but what should be the key type for the map ?
n
Nicolas Chaduc
05/03/2018, 9:34 AM
KClass<T> ?
d
droidrcc
05/03/2018, 9:35 AM
@Nicolas Chaduc
the map is a class property that is not generic I tried with Figure::class, but sounds like I cannot get from the map using T
n
Nicolas Chaduc
05/03/2018, 9:36 AM
but T is not generic, T inherit of figure with
<reified T: Figure>
2
Views
Open in Slack
Previous
Next