test261
auto test261 =
q{--- test261.vx
// offsetof only applies to non-static memebers
struct Color { enum e; alias e1 = e; @static u8 g; }
u64 offsetof_e() { return Color.e.offsetof; }
u64 offsetof_e1() { return Color.e1.offsetof; }
u64 offsetof_g() { return Color.g.offsetof; }
--- <error>
test261.vx:4:35: Error: `e` has no member `offsetof`
test261.vx:5:37: Error: `e` has no member `offsetof`
test261.vx:6:35: Error: `u8` has no member `offsetof`
};
tests passing
functionsvariables