zig/test/behavior/bugs/13159.zig
2022-10-27 01:31:18 +03:00

15 lines
221 B
Zig

const std = @import("std");
const expect = std.testing.expect;
const Bar = packed struct {
const Baz = enum {
fizz,
buzz,
};
};
test {
var foo = Bar.Baz.fizz;
try expect(foo == .fizz);
}