Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365734 - [xtend][types] Wrong parameter type in synthetic dispatcher when Void is involved
Summary: [xtend][types] Wrong parameter type in synthetic dispatcher when Void is invo...
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.1.1   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-06 09:16 EST by Jan Koehnlein CLA
Modified: 2017-09-19 18:10 EDT (History)
1 user (show)

See Also:
jan: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Koehnlein CLA 2011-12-06 09:16:46 EST
Given two dispatch methods

def dispatch printType(Integer x) { "it's an int" }
def dispatch printType(Void x) { "it's null" }

The signature of the synthetic dispatcher is
  printType(Object)
but it should be
  printType(Integer)
Comment 1 Sebastian Zarnekow CLA 2011-12-06 10:20:22 EST
Good catch!

Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 17:59:36 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 18:10:19 EDT
Closing all bugs that were set to RESOLVED before Neon.0