package java.util;
@:native("java.util.List")
extern class List<T> {}
and contstruct ComplexType from it: var arrayComplexType = macro: java.util.List<$someType>;
Later in macro I can generate fields typed as java.util.List<SomeType> in java.
Is it possible to generate fields typed as java.util.List<? extends SomeType>?
public interface SomeInterface
{
java.util.List<? extends SomeType> getList();
}
I have success only with java.util.List<SomeType> getList();
But there are problems with a covariance on java side and I need ? extends thing. Maybe it is possible with a haxe postgenerating mechanism?
I don’t think that’s currently possible, you could open an issue on github and ask for a field meta that would make the generator output such construct.