| 1 | vlib/v/checker/tests/ctdefine.vv:4:1: error: only functions that do NOT return values can have `@[if test]` tags |
| 2 | 2 | |
| 3 | 3 | @[if test] |
| 4 | 4 | fn only_called_in_test() string { |
| 5 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 6 | 5 | return 'bah' |
| 7 | 6 | } |
| 8 | vlib/v/checker/tests/ctdefine.vv:1:1: error: project must include a `main` module or be a shared library (compile with `v -shared`) |
| 9 | 1 | module notmain |
| 10 | | ^ |
| 11 | 2 | |
| 12 | 3 | @[if test] |
| 13 |