Firstly, you should give Type.resolveClass
the fully qualified name of the class. I.e. pack.subpack.AClass
.
Secondly, you may use --macro include("pack")
. Which the include
function is a method from haxe.macro.Compiler
. --macro
by default looks into that class for methods.
Lastly, the import my.package.*
statement in haxe is lazy. It tell the compiler to resolve types in my.package
, but not really import everything in my.package
in the beginning.