Community
Participate
Working Groups
In Xtend, the following code produces no error -------------- class Foo { Class<? extends Collection<?>> c = ArrayList } -------------- The compiled Java code: --------------- public class Foo { private Class<? extends Collection<? extends Object>> c = ArrayList.class; } ---------------- doesn't compile because of error: Type mismatch: cannot convert from Class<ArrayList> to Class<? extends Collection<? extends Object>>
Does this fail with typeof literals, too?
(In reply to comment #1) > Does this fail with typeof literals, too? yes, i.e. no error in Xtend, but an error on the Java side.