| 1 | vlib/v/checker/tests/custom_comptime_define_error.vv:6:6: error: undefined ident: `mysymbol` |
| 2 | 4 | println('comptime option define works') |
| 3 | 5 | } |
| 4 | 6 | $if mysymbol { |
| 5 | | ~~~~~~~~ |
| 6 | 7 | // this will produce a checker error when `-d mysymbol` is not given on the CLI |
| 7 | 8 | println('comptime non-option define works') |
| 8 | vlib/v/checker/tests/custom_comptime_define_error.vv:6:6: error: unknown var: `mysymbol` |
| 9 | 4 | println('comptime option define works') |
| 10 | 5 | } |
| 11 | 6 | $if mysymbol { |
| 12 | | ~~~~~~~~ |
| 13 | 7 | // this will produce a checker error when `-d mysymbol` is not given on the CLI |
| 14 | 8 | println('comptime non-option define works') |
| 15 | |