Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355989 - Ambiguous Function error
Summary: Ambiguous Function error
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 355511 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-26 17:43 EDT by Scott Greer CLA
Modified: 2017-02-23 14:17 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Greer CLA 2011-08-26 17:43:23 EDT
In the RadioGroup widget, there is this logic:

		for (index int from 1 to options.getSize() by 1)
			newOption Widget{tagName = "input type=radio name=" + groupName};
			newOption.setAttribute("value", options[index]);
			newOption.onClick ::= setSelectedEvent;
			newOption.onChange ::= setChangeEvent;
			optionName TextLabel{text = options[index], class = "EglRuiRadioGroupOptionName"};
			optionName.setAttribute("dir", "ltr");
			optionName.style = "display: inline-block";

			optionsList.appendElement(newOption);
			optionsBox.appendChild(newOption);
			optionsBox.appendChild(optionName);       
		end


....when compiled the last "appendChild" statement produces an AmbiguousFunction error, presumably because the method resolution fails given the type of the optionName parameter;  note that it does not complain about the previous statement where the newOption widget is involved.
Comment 1 Paul Harmon CLA 2011-08-26 17:51:42 EDT
I have updated TypeUtils to resolve to the function defined in the lowest level of the hierarchy if multiple functions are found.
Comment 2 Scott Greer CLA 2011-08-27 11:12:47 EDT
Verified.
Comment 3 Paul Harmon CLA 2011-08-31 14:24:13 EDT
*** Bug 355511 has been marked as a duplicate of this bug. ***
Comment 4 Lisa Lasher CLA 2011-10-11 16:20:12 EDT
Closing this defect.