From 909424cada4e425a5df589ff40707f41b6ebb415 Mon Sep 17 00:00:00 2001 From: Techatrix <19954306+Techatrix@users.noreply.github.com> Date: Fri, 6 Jan 2023 15:01:48 +0100 Subject: [PATCH] error set type formatting --- src/InternPool.zig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/InternPool.zig b/src/InternPool.zig index 66ee74a..47623b3 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -656,7 +656,15 @@ pub const Key = union(enum) { }); }, // .error_type => @panic("TODO"), - .error_set_type => @panic("TODO"), + .error_set_type => |error_set_info| { + const names = error_set_info.names; + try writer.writeAll("error{"); + for (names) |name, i| { + if (i != 0) try writer.writeByte(','); + try writer.writeAll(name); + } + try writer.writeByte('}'); + }, .enum_type => @panic("TODO"), .function_type => |function_info| { try writer.writeAll("fn(");