Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 365734

Summary: [xtend][types] Wrong parameter type in synthetic dispatcher when Void is involved
Product: [Modeling] TMF Reporter: Jan Koehnlein <jan>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: sebastian.zarnekow
Version: 2.1.1Flags: jan: juno+
Target Milestone: M4   
Hardware: All   
OS: All   
Whiteboard:

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