also, what about types like this: `type Fruits = "...
# announcements
p
also, what about types like this:
type Fruits = "Apples" | "Oranges" | "Bananas";
, what would be the kotlin equivalent?
d
There is no direct equivalent. You can use an enum type: https://kotlinlang.org/docs/reference/enum-classes.html
👍 2
i
If you want the union type power, this might be an interesting option. https://kotlinlang.org/docs/reference/sealed-classes.html
👍 2