https://kotlinlang.org logo
#announcements
Title
# announcements
r

redrield

05/16/2017, 6:14 PM
Where the type can be one or the other?
p

pavel.talanov

05/16/2017, 6:18 PM
redrield: If you just need two upper bounds, it's possible and is described at the bottom of the page http://kotlinlang.org/docs/reference/generics.html#generic-constraints . Union types (one or the other) are not supported in kotlin.