v/vlib/v/parser/tests/option_sum_type_return_err.out

6 lines
218 B
Plaintext

vlib/v/parser/tests/option_sum_type_return_err.vv:1:21: error: an inline sum type cannot be optional
1 | fn option_sumtype() ?string | int {
| ~~~~~~~~~~~~~
2 | return 0
3 | }