Community
Participate
Working Groups
The name of included extensions in Xtend classes is mandatory, but normally there is no reason to use the extension instance directly in the Xtend code. It would be better if the variable name is optional and inferred internally. class MyXtendClass { @Inject MyExtension // omit myExtensionName }
We've had this initially, but it introduces an ambiguity in the grammar, because the parser cannot decide whether it is an optional extension name or an optional return type of a following function.
Oops, forget that last comment, we now have a def keyword.
It would be ambiguous whether the following is two or one field: ''' Foo Bar ''' If we make it dependent on the existence of the 'extension' keyword it might work. We'll have to check what kind of effects this has on content assist and error recovery.
Pushed to master.
Closing all bugs that were set to RESOLVED before Neon.0