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

Bug 357915

Summary: [Xtend] dispatch function signatures with same primitives get converted to wrapper types
Product: [Modeling] TMF Reporter: Sven Efftinge <sven.efftinge>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: SR2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sven Efftinge CLA 2011-09-16 05:11:18 EDT
Given :

dispatch foo(Object x, boolean b) {}
dispatch foo(String s, boolean b) {}

the signature

foo(Object, Boolean) is inferred. It should be foo(Object, boolean)
Comment 1 Sebastian Zarnekow CLA 2011-09-16 05:14:12 EDT
+1

Would it be feasable to skip the type check for a parameter altogether if all dispatch signatures define the same type?
Comment 2 Sven Efftinge CLA 2011-09-16 05:19:50 EDT
pushed to MASTER
Comment 3 Sven Efftinge CLA 2011-09-16 05:20:02 EDT
Yes, I did that.
Comment 4 Karsten Thoms CLA 2017-09-19 17:33:38 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 17:44:48 EDT
Closing all bugs that were set to RESOLVED before Neon.0