fuzion
fuzion copied to clipboard
`x.val.0` should work for `option (tuple i32 i32)`
x.0 works for a tuple
> ./build/bin/fz -e "f(x (i32,i32)) => { say x.0 }; f (47,11)"
47
x.val.0 should then work for an option of a tuple, but it does not
> ./build/bin/fz -e "f(x option ((i32,i32))) => { say x.val.0 }; f (47,11)"
command line:1:36: error 1: Use of selector requires call to feature whose type is an open type parameter
f(x option ((i32,i32))) => { say x.val.0 }; f (47,11)
-----------------------------------^^^
In call to 'option.val'
Selected variant 'val.0'
Type of called feature: 'option.T'
one error.
x.val.values.0 is required for an option of a tuple:
> ./build/bin/fz -e "f(x option ((i32,i32))) => { say x.val.values.0 }; f (47,11)"
47