mirror of
https://github.com/ziglang/zig.git
synced 2025-12-14 10:13:07 +00:00
15 lines
221 B
Zig
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);
|
|
}
|