Community
Participate
Working Groups
I'm not sure Xtend wants to fulfill the magic that this code snippet promises to deliver --- class foo extends bar { new(String i, String x) { this = new foo("", "x") } } --- currently, there are no validation errors. I'd expect an error that assignments to "this" are not allowed.
Does this happen for methods, too?
yes, --- class bar { def foo() { this = new bar() } } --- does not lead to validation errors.
Will introduce a validation for that. The message could be the same as in JDT: Left-hand side of an assignment must be an variable
pused check and tests to master
Closing all bugs that were set to RESOLVED before Neon.0