[Mono-bugs] [Bug 64540][Nor] Changed - mcs does not trap ambigous call for StringWriter.Write
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 10 Sep 2004 09:54:31 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by rharinath@novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=64540
--- shadow/64540 2004-08-30 09:08:19.000000000 -0400
+++ shadow/64540.tmp.8677 2004-09-10 09:54:31.000000000 -0400
@@ -2,22 +2,23 @@
Product: Mono: Compilers
Version: unspecified
OS: Windows XP (Cygwin)
OS Details: SP1
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: ndrochak@gol.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
Summary: mcs does not trap ambigous call for StringWriter.Write
+BugsThisDependsOn: 55786
csc flags an error CS0121 for the following code because an ambigous call
to Write(). mcs does not see this as an error.
using System;
using System.IO;
@@ -30,6 +31,12 @@
{
StringWriter writer = new StringWriter ();
writer.Write (null);
}
}
}
+
+------- Additional Comments From rharinath@novell.com 2004-09-10 09:54 -------
+This is a manifestation of 55786. Overload resolution happens with
+the methods of StringWriter, not with the methods of TextWriter which
+they overload -- hence the ambiguous call is not seen.
+