Bug 320384 (MONO77614) - [GMCS] Compiler bug -- doesnt recognize difference between methods
Summary: [GMCS] Compiler bug -- doesnt recognize difference between methods
Status: RESOLVED FIXED
Alias: MONO77614
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other All
: P3 - Medium : Major
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-21 19:59 UTC by Evan Hourigan
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
makefile (251 bytes, text/plain)
2006-02-21 20:00 UTC, Thomas Wiest
Details
XDocument.cs (516 bytes, text/plain)
2006-02-21 20:00 UTC, Thomas Wiest
Details
XObject.cs (264 bytes, text/plain)
2006-02-21 20:01 UTC, Thomas Wiest
Details
XList.cs (292 bytes, text/plain)
2006-02-21 20:02 UTC, Thomas Wiest
Details
XDerivedObject.cs (283 bytes, text/plain)
2006-02-21 20:02 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:49:27 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)