mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
14 lines
190 B
Zig
14 lines
190 B
Zig
const Set1 = error{
|
|
A,
|
|
B,
|
|
};
|
|
const Set2 = error{
|
|
A,
|
|
C,
|
|
};
|
|
comptime {
|
|
_ = @as(Set2, @errorCast(Set1.B));
|
|
}
|
|
|
|
// test_error='error.B' not a member of error set 'error{A,C}'
|