[Mono-bugs] [Bug 64540][Nor] New - mcs does not trap ambigous call for StringWriter.Write

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 30 Aug 2004 09:08:19 -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 ndrochak@gol.com.

http://bugzilla.ximian.com/show_bug.cgi?id=64540

--- shadow/64540	2004-08-30 09:08:19.000000000 -0400
+++ shadow/64540.tmp.29134	2004-08-30 09:08:19.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 64540
+Product: Mono: Compilers
+Version: unspecified
+OS: Windows XP (Cygwin)
+OS Details: SP1
+Status: NEW   
+Resolution: 
+Severity: 
+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
+
+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;
+
+namespace ConsoleApplication1
+{
+	class Class1
+	{
+		static void Main(string[] args)
+		{
+			StringWriter writer = new StringWriter ();
+			writer.Write (null);
+		}
+	}
+}