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) }