mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
parent
20cc69318f
commit
2606498409
@ -6115,6 +6115,8 @@ pub const PeerTypeCandidateSrc = union(enum) {
|
||||
return null;
|
||||
},
|
||||
.override => |candidate_srcs| {
|
||||
if (candidate_i >= candidate_srcs.len)
|
||||
return null;
|
||||
return candidate_srcs[candidate_i];
|
||||
},
|
||||
.typeof_builtin_call_node_offset => |node_offset| {
|
||||
|
||||
@ -0,0 +1,20 @@
|
||||
const std = @import("std");
|
||||
|
||||
pub const DwarfSection = enum {
|
||||
eh_frame,
|
||||
eh_frame_hdr,
|
||||
};
|
||||
|
||||
pub fn main() void {
|
||||
const section = inline for (@typeInfo(DwarfSection).Enum.fields) |section| {
|
||||
if (std.mem.eql(u8, section.name, "eh_frame")) break section;
|
||||
};
|
||||
|
||||
_ = section;
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :9:28: error: incompatible types: 'builtin.Type.EnumField' and 'void'
|
||||
Loading…
x
Reference in New Issue
Block a user