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