Is there a way to get the name of a type alias at comptime? E.g.:
const std = @import("std");
const Date = []const u8;
const Body = struct {
a: i32,
date: Date,
};
pub fn main() !void {
inline for (@typeInfo(Body).Struct.fields) |field| {
std.debug.print("{}\n", .{field.type});
}
}
The above prints "i32" and "[]const u8" which is correct, but is there any way I could use a type alias (or other means) to know date is intended to be a Date type?