Yes, it's just a representation you can't actually...
# getting-started
k
Yes, it's just a representation you can't actually declare intersection types like that yourself.
f
Thanks. And this will only allow boolean and Int in this case? Or does it include anything else?
and are these 2 different "options"?
so both would work on their own for that array?
k
Err well it's complicated, in this case any class that is serializable and implements
Comparable<Any>
(which does't actually make sense) will work I think.
Not sure what options you're talking about?
f
like only using Array<java.io.Serializable>
but I already tested it
it seems then I can add more types to the array
this tag looks so weird in the IDE
i
You can disable these type hints of define type aliases for more complex types to make them look nicer
f
Good idea, thanks