Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
enum_field_value_references_enum.zig
pretty
plain
permalink
blame
history
•
11 lines
•
211 B
1
pub const Foo = enum(c_int) {
2
a = 10,
3
b = @intFromEnum(Foo.a) - 1,
4
};
5
export fn entry() void {
6
_ = @as(Foo, .a);
7
}
8
9
// error
10
//
11
// :3:25: error: type 'tmp.Foo' depends on itself for field usage here