#Union types and how to construct variants
1 messages · Page 1 of 1 (latest)
let val = V1("wibble", 1)
to access val's properties, you need to match
case val {
V1(f: f, g: g) -> ...
V2(j: j, k: k) -> ...
}
Could you just match on v1(name1, name2) or do you have to include annotations?
you could, sure
Oh okay, thanks!
and you can match partially with V1(f, ..)