mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 17:43:17 +00:00
Changed container and initializer syntax
* <container> { ... } -> <container> . { ... }
* <exrp> { ... } -> <expr> . { ...}
13 lines
170 B
Zig
13 lines
170 B
Zig
const Foo = extern enum.{
|
|
Bar = -1,
|
|
};
|
|
|
|
test "issue 1111 fixed" {
|
|
const v = Foo.Bar;
|
|
|
|
switch (v) {
|
|
Foo.Bar => return,
|
|
else => return,
|
|
}
|
|
}
|