given this struct:
pub fn GenericType(comptime T: type) type {
return struct {
field1: T,
pub fn init(field1: T) @This() {
return .{ .field1 = field1 };
}
};
}
how could i return this struct in a function, without the type specified, for instance:
pub fn doAThing(...) GenericType {
...
}