| 1 | fn main() { |
| 2 | $if mysymbol ? { |
| 3 | // this should not produce checker errors, but will print only with `-d mysymbol` |
| 4 | println('comptime option define works') |
| 5 | } |
| 6 | $if mysymbol { |
| 7 | // this will produce a checker error when `-d mysymbol` is not given on the CLI |
| 8 | println('comptime non-option define works') |
| 9 | } |
| 10 | } |
| 11 |