vxx2 / vlib / v / checker / tests / nil.out
12 lines · 12 sloc · 391 bytes · 1512486d01d4205e7b67ebd679238fa45cd348af
Raw
1vlib/v/checker/tests/nil.vv:2:11: error: `nil` is only allowed in `unsafe` code
2 1 | fn main() {
3 2 | value := nil
4 | ~~~
5 3 | println(value)
6 4 | }
7vlib/v/checker/tests/nil.vv:2:11: error: use of untyped nil in assignment (use `unsafe` | false)
8 1 | fn main() {
9 2 | value := nil
10 | ~~~
11 3 | println(value)
12 4 | }
13