https://kotlinlang.org logo
#arrow-contributors
Title
# arrow-contributors
r

raulraja

12/08/2019, 12:35 PM
Copy code
val stringOrInt: Union2<String, Int> = 0 //ok
val stringOrInt: Union2<String, Int> = "" //ok
val stringOrInt: Union2<String, Int> = 0.0 //not ok because not in the union