v2 / vlib / v / checker / tests / as_cast_option_result_unhandled_err.out
6 lines · 6 sloc · 293 bytes · bc68c87f21c117797a77bc87a71cf98144d6a58b
Raw
1vlib/v/checker/tests/as_cast_option_result_unhandled_err.vv:11:6: error: ret_sum_result() returns `!Sum`, so it should have either an `or {}` block, or `!` at the end
2 9 | }
3 10 |
4 11 | _ := ret_sum_result() as int
5 | ~~~~~~~~~~~~~~~~
6 12 | _ := ret_sum_option() as string
7