v4 / vlib / v / checker / tests / index_of_option_err.out
7 lines · 7 sloc · 267 bytes · 2879c5110c6dd4f38585e97baba8dce3101769fa
Raw
1vlib/v/checker/tests/index_of_option_err.vv:6:7: error: type `?[]int` is an Option, it must be unwrapped with `func()?`, or use `func() or {default}`
2 4 |
3 5 | fn main() {
4 6 | a := abc()[0] or { 5 }
5 | ~~~~~
6 7 | dump(a)
7 8 | }
8