You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that if you import an "interface A"(IEntity) that has a variable of type "class B"(EntityData) that has a function with return type "class C"(Entity) and "class C" implements the "interface A", then variables from "interface A" simply aren't copied to "class C" or something like this.
The same if you import "Class C" and then "Interface A".
But no problems for imports "Class C" or "Interface A" and "Class C"
The text was updated successfully, but these errors were encountered:
This happens because when macro is trying to resolve imported classes haxe compiller actualy build class before resolving.
Unfortunately i didn't find any easy way to workaround this. The only way i see is to parse sources manually (without haxe compiler) to fin full classpaths of imported types. But this is not easy task for me.
The only possible way to solve this problem is to not use import statements and use full classpaths in traits' code and remove all Context.getType() calls in haxe-traits code
Reference Gist
Seems that if you import an "interface A"(IEntity) that has a variable of type "class B"(EntityData) that has a function with return type "class C"(Entity) and "class C" implements the "interface A", then variables from "interface A" simply aren't copied to "class C" or something like this.
The same if you import "Class C" and then "Interface A".
But no problems for imports "Class C" or "Interface A" and "Class C"
The text was updated successfully, but these errors were encountered: