Bugzilla – Bug 320384
[GMCS] Compiler bug -- doesnt recognize difference between methods
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by ehourigan@fnfr.com 2006-02-21 12:59:16 MST ---- Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: Compiler bug: Doesn't recognize the difference between implemented method in derived List<T> class versus derived object class Steps to reproduce the problem: 1. Compile the attached files 2. 3. Actual Results: XDocument.cs(24,13): error CS0121: The call is ambiguous between the following methods or properties: `MonoBug.XObject.XMethod(string, bool)' and `MonoBug.XList<MonoBug.XDerivedObject>.XMethod<>(string, bool)' XObject.cs(13,30):: `MonoBug.XObject.XMethod(string, bool)', name of symbol related to previous error XList.cs(13,30):: `MonoBug.XList<T>.XMethod(string, bool)', name of symbol related to previous error Compilation failed: 1 error(s), 0 warnings Expected Results: How often does this happen? Every time Additional Information: ---- Additional Comments From ehourigan@fnfr.com 2006-02-21 13:00:10 MST ---- Created an attachment (id=169305) makefile ---- Additional Comments From ehourigan@fnfr.com 2006-02-21 13:00:43 MST ---- Created an attachment (id=169306) XDocument.cs ---- Additional Comments From ehourigan@fnfr.com 2006-02-21 13:01:56 MST ---- Created an attachment (id=169307) XObject.cs ---- Additional Comments From ehourigan@fnfr.com 2006-02-21 13:02:14 MST ---- Created an attachment (id=169308) XList.cs ---- Additional Comments From ehourigan@fnfr.com 2006-02-21 13:02:30 MST ---- Created an attachment (id=169309) XDerivedObject.cs ---- Additional Comments From martin@ximian.com 2006-03-16 12:38:20 MST ---- Works for me. Imported an attachment (id=169305) Imported an attachment (id=169306) Imported an attachment (id=169307) Imported an attachment (id=169308) Imported an attachment (id=169309)