[Mono-bugs] [Bug 71996][Nor] New - Error CS0187 is not reported

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 31 Jan 2005 04:41:16 -0500 (EST)


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 marek.safar@seznam.cz.

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

--- shadow/71996	2005-01-31 04:41:16.000000000 -0500
+++ shadow/71996.tmp.25956	2005-01-31 04:41:16.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 71996
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: marek.safar@seznam.cz               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Error CS0187 is not reported
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Error CS0187 is not reported => wrong IL code
+
+Steps to reproduce the problem:
+
+using System;
+using System.Collections;
+
+class foo {
+	private static void Up(Hashtable h, String x, String y)
+	{
+		h[x + "/" + y]++;
+	}
+
+	public static void Main()
+	{
+		Hashtable y = new Hashtable ();
+		Up(y, "foo", "bar");
+	}
+}
+
+Actual Results:
+
+No compilation error
+
+Expected Results:
+
+(7,3): error CS0187: No such operator '++' defined for type 'object'