sm
This commit is contained in:
@@ -89,6 +89,8 @@ pub const Parser = struct {
|
||||
const expr = try self.parseIfExpr();
|
||||
if (expr.data == .if_expr) {
|
||||
expr.data.if_expr.is_comptime = true;
|
||||
} else if (expr.data == .match_expr) {
|
||||
expr.data.match_expr.is_comptime = true;
|
||||
}
|
||||
return expr;
|
||||
}
|
||||
@@ -1394,6 +1396,8 @@ pub const Parser = struct {
|
||||
const expr = try self.parseIfExpr();
|
||||
if (expr.data == .if_expr) {
|
||||
expr.data.if_expr.is_comptime = true;
|
||||
} else if (expr.data == .match_expr) {
|
||||
expr.data.match_expr.is_comptime = true;
|
||||
}
|
||||
try self.expectSemicolonAfter(expr);
|
||||
return expr;
|
||||
|
||||
Reference in New Issue
Block a user