Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369190 - Xtend2 doesn't check for different imports of the same simple name.
Summary: Xtend2 doesn't check for different imports of the same simple name.
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: M6   Edit
Assignee: Jan Koehnlein CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-20 04:41 EST by Ed Merks CLA
Modified: 2017-09-19 18:11 EDT (History)
3 users (show)

See Also:
sven.efftinge: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Merks CLA 2012-01-20 04:41:57 EST
If you add imports like this:

import java.awt.List;
import java.util.List;

the only problems reported are that they're both not used.


If you try to use it like this

		val List<?> x = null

You get an error about List not resolving and one of the warnings on the imports goes away.

In Java, you'd get an error for the same simple name being imported with two different qualified names.
Comment 1 Jan Koehnlein CLA 2012-02-29 05:28:58 EST
Fixed in HEAD
Comment 2 Karsten Thoms CLA 2017-09-19 18:01:15 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 18:11:36 EDT
Closing all bugs that were set to RESOLVED before Neon.0