~alva/zig-bare

fc83744fb52cfb43a532d51c6b86a73ab0add629 — ugla 11 months ago 02ddae9
All tests pass on self-hosted
1 files changed, 9 insertions(+), 11 deletions(-)

M src/test.zig
M src/test.zig => src/test.zig +9 -11
@@ 827,17 827,15 @@ test "invariant: hashmap keys must be of primitive type" {
}

test "invariant: enum values must be unique" {
    std.debug.print("Enable {s} when stage2 is fixed", .{@This()});
    return;
//    try testCompileError(
//       \\pub fn main() void {
//       \\  const Foo = enum(u8) {
//       \\//    x = 1,
//       \\//    y = 1,
//       \\  };
//       \\  _ = Foo;
//       \\}
//    , "enum tag value 1 already taken");
    try testCompileError(
       \\pub fn main() void {
       \\  const Foo = enum(u8) {
       \\    x = 1,
       \\    y = 1,
       \\  };
       \\  _ = Foo;
       \\}
    , "enum tag value 1 already taken");
}

const fs = std.fs;