const Animal = union(enum) { cat: Cat, dog: Dog, pub fn make_noise(self: Animal) void { switch (self) { inline else => |impl| impl.make_noise(), } } };
reply