╭ add_decl_namespaced ──────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
1 #update=initial version 2 #file=main.zig 3 const std = @import("std"); 4 pub fn main() !void { 5 try std.Io.File.stdout().writeStreamingAll(io, @This().foo); 6 } 7 const foo = "good morning\n"; 8 const io = std.Io.Threaded.global_single_threaded.io(); 9 #expect_stdout="good morning\n" 10 11 #update=add new declaration 12 #file=main.zig 13 const std = @import("std"); 14 pub fn main() !void { 15 try std.Io.File.stdout().writeStreamingAll(io, @This().foo); 16 } 17 const foo = "good morning\n"; 18 const bar = "good evening\n"; 19 const io = std.Io.Threaded.global_single_threaded.io(); 20 #expect_stdout="good morning\n" 21 22 #update=reference new declaration 23 #file=main.zig 24 const std = @import("std"); 25 pub fn main() !void { 26 try std.Io.File.stdout().writeStreamingAll(io, @This().bar); 27 } 28 const foo = "good morning\n"; 29 const bar = "good evening\n"; 30 const io = std.Io.Threaded.global_single_threaded.io(); 31 #expect_stdout="good evening\n" 32 33 #update=reference missing declaration 34 #file=main.zig 35 const std = @import("std"); 36 pub fn main() !void { 37 try std.Io.File.stdout().writeStreamingAll(io, @This().qux); 38 } 39 const foo = "good morning\n"; 40 const bar = "good evening\n"; 41 const io = std.Io.Threaded.global_single_threaded.io(); 42 #expect_error=main.zig:3:59: error: root source file struct 'main' has no member named 'qux' 43 #expect_error=main.zig:1:1: note: struct declared here 44 45 #update=add missing declaration 46 #file=main.zig 47 const std = @import("std"); 48 pub fn main() !void { 49 try std.Io.File.stdout().writeStreamingAll(io, @This().qux); 50 } 51 const foo = "good morning\n"; 52 const bar = "good evening\n"; 53 const qux = "good night\n"; 54 const io = std.Io.Threaded.global_single_threaded.io(); 55 #expect_stdout="good night\n" 56 57 #update=remove unused declarations 58 #file=main.zig 59 const std = @import("std"); 60 pub fn main() !void { 61 try std.Io.File.stdout().writeStreamingAll(io, @This().qux); 62 } 63 const qux = "good night\n"; 64 const io = std.Io.Threaded.global_single_threaded.io(); 65 #expect_stdout="good night\n" 66