module foo; class X { void test (int i) { } } void bar() { auto x = new X; } void main() { bar(); } module reflected.foo; import foo; import rlib.reflection; static this() { rlib.reflection.classAggrs ~= &classAggr; rlib.reflection.classPostAggrs ~= &classPostAggr; rlib.reflection.functionAggrs ~= &functionAggr; rlib.reflection.variableAggrs ~= &variableAggr; } methods:[ ] }; overloads:[ ] }; ptr:null void classAggr() { RefClass* rc; } void classPostAggr() {} overloads:[ ] }; overloads:[ ] }; vtblPos:-1, }; vtblPos:-1, }; void functionAggr() { } void variableAggr() {}