ceylon-ide-eclipse
ceylon-ide-eclipse copied to clipboard
First Option for automatically generated variable names can cause name collisions with functions
Start typing this in the IDE:
set({1,2,3});
Now "Assign Expression to New Local" either by Ctrl/Cmd-1 or Ctrl/Cmd-L .
This first suggestion, which most people will automatically hit ENTER for (second suggestion is "integers") results in the following code:
value set = set({1,2,3});
And the resulting compile errors:
- could not determine type of function or value reference: 'set'
- not definitely specified: 'set'
I'd rank this as an annoyance and a point of potential confusion for new Ceylon users since the variable name can be easily changed.
The suggested fix may be tricky, but the IDE should figure out better variable names in these situations (ex "set1", "mySet").