We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7cfec2 commit 9a73766Copy full SHA for 9a73766
1 file changed
vlib/v/comptime/comptime.v
@@ -141,9 +141,8 @@ pub fn (mut c Comptime) expr_stmt(mut node ast.Expr) StmtOrExpr {
141
if !node.is_expr && !node.has_else && node.branches.len == 1 {
142
if node.branches[0].stmts.len == 0 {
143
// empty ifdef; result of target OS != conditional => skip
144
- return ast.Stmt(ast.Block{
145
- pos: node.pos
146
- scope: ast.empty_scope
+ return ast.Stmt(ast.EmptyStmt{
+ pos: node.pos
147
})
148
}
149
if !c.pref.output_cross_c {
0 commit comments