Merge pull request #160 from chrboesch/typeinfo

patch because of a change in @typeInfo
This commit is contained in:
Chris Boesch 2023-01-14 15:47:09 +01:00 committed by GitHub
commit 95e793d484
3 changed files with 3 additions and 3 deletions

View file

@ -100,7 +100,7 @@ pub fn main() void {
//
// pub const StructField = struct {
// name: []const u8,
// field_type: type,
// type: type,
// default_value: anytype,
// is_comptime: bool,
// alignment: comptime_int,

View file

@ -41,7 +41,7 @@ pub fn main() void {
const fields = @typeInfo(Narcissus).Struct.fields;
??? {
if (field.field_type != void) {
if (field.type != void) {
print(" {s}", .{field.name});
}
}

View file

@ -96,7 +96,7 @@ fn printTuple(tuple: anytype) void {
//
// pub const StructField = struct {
// name: []const u8,
// field_type: type,
// type: type,
// default_value: anytype,
// is_comptime: bool,
// alignment: comptime_int,