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

Bug 355989

Summary: Ambiguous Function error
Product: z_Archived Reporter: Scott Greer <greer>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pharmon, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.