vxx2 / vlib / v / checker / tests / struct_scope_err.out
26 lines · 26 sloc · 819 bytes · e2e5cf8db56f3562c7baa735061690be936bdf3e
Raw
1vlib/v/checker/tests/struct_scope_err.vv:8:5: notice: condition is always true
2 6 | }
3 7 |
4 8 | if true {
5 | ~~~~
6 9 | fb := Foobar{5, 6}
7 10 | println(fb.foo)
8vlib/v/checker/tests/struct_scope_err.vv:16:8: error: unknown type `Foobar`
9 14 |
10 15 | fn x() {
11 16 | fb := Foobar{7, 8}
12 | ~~~~~~~~~~~~
13 17 | println(fb.bar)
14 18 | }
15vlib/v/checker/tests/struct_scope_err.vv:17:13: error: `fb` does not return a value
16 15 | fn x() {
17 16 | fb := Foobar{7, 8}
18 17 | println(fb.bar)
19 | ~~~
20 18 | }
21vlib/v/checker/tests/struct_scope_err.vv:17:2: error: `println` can not print void expressions
22 15 | fn x() {
23 16 | fb := Foobar{7, 8}
24 17 | println(fb.bar)
25 | ~~~~~~~~~~~~~~~
26 18 | }
27