mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
fix std.json regression
This commit is contained in:
parent
86f362ce8e
commit
2b1695b1b0
@ -876,8 +876,9 @@ pub const TokenStream = struct {
|
||||
|
||||
pub fn next(self: *TokenStream) !?Token {
|
||||
if (self.token) |token| {
|
||||
const copy = token;
|
||||
self.token = null;
|
||||
return token;
|
||||
return copy;
|
||||
}
|
||||
|
||||
var t1: ?Token = undefined;
|
||||
|
||||
@ -90,7 +90,7 @@ test "std" {
|
||||
_ = @import("hash.zig");
|
||||
_ = @import("heap.zig");
|
||||
_ = @import("io.zig");
|
||||
//_ = @import("json.zig");
|
||||
_ = @import("json.zig");
|
||||
//_ = @import("lazy_init.zig");
|
||||
_ = @import("macho.zig");
|
||||
_ = @import("math.zig");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user