Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342180 - [Xtend] problem with dispatch methods
Summary: [Xtend] problem with dispatch methods
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-07 11:14 EDT by Sven Efftinge CLA
Modified: 2017-09-19 17:31 EDT (History)
0 users

See Also:
sven.efftinge: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Efftinge CLA 2011-04-07 11:14:33 EDT
The following code generates wrong Java :

class Test  {
	dispatch x(String x) {
	}
	x(Object y) {
	}
}


Seems like the inference for the common super type calculation of parameters takes x(Object y) into account although it's not a dispatch method.
Comment 1 Sven Efftinge CLA 2011-04-08 04:34:45 EDT
pushed to master
Comment 2 Karsten Thoms CLA 2017-09-19 17:19:44 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:31:16 EDT
Closing all bugs that were set to RESOLVED before Neon.0