mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 18:13:19 +00:00
AstGen: fix compile error using wrong node/token function
This commit is contained in:
parent
e13fc6b119
commit
0409d433ba
@ -3400,7 +3400,7 @@ fn forExpr(
|
||||
const is_ptr = ident != payload_token;
|
||||
const value_name = tree.tokenSlice(ident);
|
||||
if (!mem.eql(u8, value_name, "_")) {
|
||||
return astgen.failNode(ident, "TODO implement for loop value payload", .{});
|
||||
return astgen.failTok(ident, "TODO implement for loop value payload", .{});
|
||||
} else if (is_ptr) {
|
||||
return astgen.failTok(payload_token, "pointer modifier invalid on discard", .{});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user