From e8da302301d77d46ee205dc3a0bb5daba65fce3a Mon Sep 17 00:00:00 2001 From: dave caruso Date: Sun, 15 Sep 2024 15:16:59 -0400 Subject: [PATCH] you can print the ast lol --- src/core/Ast.Dump.zig | 2 ++ test/behavior/tuple | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/Ast.Dump.zig b/src/core/Ast.Dump.zig index 6eebfd5f2230937fb9089326de97c82562e07a88..820004af937a755181a10d82406db9e852f8d755 100644 --- a/src/core/Ast.Dump.zig +++ b/src/core/Ast.Dump.zig @@ -126,6 +126,8 @@ fn dumpNode(writer: anytype, state: *State, node: NodeIndex) @TypeOf(writer).Err .struct_decl, => try dumpNodeList(writer, state, list, '{', '}'), .builtin_call, + .tuple_init, + .tuple_type, => try dumpNodeList(writer, state, list, '(', ')'), .array_init, => try dumpNodeList(writer, state, list, '[', ']'), diff --git a/test/behavior/tuple b/test/behavior/tuple index b9c2bf8b2ef8391fe5d333ba7e4598df2e983995..5130f76840e7af806599dc98fd2aea19657b10c5 100644 --- a/test/behavior/tuple +++ b/test/behavior/tuple @@ -1,6 +1,6 @@ let assertEqual = @extern("assertEqual"); -fn hello() -> tuple (int, float) { +fn hello(x: type) -> y(x, float) { (5, 2.5) } -- 2.54.0