How do I create a variable with type List<String>
in Xtend?
var list = Lists::newArrayList()
list.add( "xxx" )
doesn't work; the type in the add()
isn't propagated back.
var list = Lists::newArrayList() as List<String>
gives an exception at runtime.
How do I create lists of a certain type in Xtend?