| 1 | vlib/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) |
| 8 | vlib/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 | } |
| 15 | vlib/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 | } |
| 21 | vlib/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 |