1 class Base
2 {
~this()3     ~this() {}
4     size_t x = 4;
5 }
6 
7 interface Interface
8 {
9     int Method();
10 }
11 
12 class Derived : Base, Interface
13 {
14     size_t y = 5;
Method()15     int Method() { return 3; }
16 }
17 
18 static assert(Derived.x.offsetof == (void*).sizeof * 2);
19 static assert(Derived.y.offsetof == (void*).sizeof * 4);
20