Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370239 - [scoping] Cannot use ListExtensions without an import
Summary: [scoping] Cannot use ListExtensions without an import
Status: RESOLVED FIXED
Alias: None
Product: Xtend
Classification: Tools
Component: Backlog (show other bugs)
Version: 2.3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Karsten Thoms CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-31 11:23 EST by Sebastian Zarnekow CLA
Modified: 2016-09-21 03:29 EDT (History)
3 users (show)

See Also:
sebastian.zarnekow: juno+


Attachments
Screenshot (52.68 KB, image/png)
2016-08-20 17:40 EDT, Karsten Thoms CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2012-01-31 11:23:20 EST
Code snippet (cursor position |):

val list = new ArrayList<String>();
ListExtensions|::map(list, null)

You'll get multiple error markers on #map due to a missing import for ListExtensions.

1) Place the cursor at | and invoke CA.
2) ListExtensions is proposed but an import will not be added

3) Import 'org.eclipse.xtext.xbase.lib.ListExtensions' manually and everything will be ok

Expectation: org.eclipse.xtext.xbase.lib.* is implicitly imported or CA will add the import automatically
Comment 1 Karsten Thoms CLA 2016-08-20 17:40:16 EDT
A missing import is not marked anymore, ListExtensions is implicitly imported.
Comment 2 Karsten Thoms CLA 2016-08-20 17:40:50 EDT
Created attachment 263688 [details]
Screenshot