Community
Participate
Working Groups
Given the following Xtend code: class XtendClass { @Test def void testMethod() { println(newArrayList('foo','bar','baz').toUpperCase) } def toUpperCase(Collection<String> allStrings) { allStrings.forEach[toUpperCase] } } the compiler generates : @Test public void testMethod() { ArrayList<String> _newArrayList = CollectionLiterals.<String>newArrayList("foo", "bar", "baz"); this.toUpperCase(_newArrayList); InputOutput.<void>println(null); } note 'void' is used as type parameter.
IterableExtensions#forEach returns void thus I'd expect an error marker on the invocation of println
Fixed in the meanwhile. Error marker says: Incompatible types. Expected Object but was void