[Mono-bugs] [Bug 47149][Wis] New - mcs should report CS0175

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 30 Jul 2003 18:05:47 -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 duncan@ximian.com.

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

--- shadow/47149	Wed Jul 30 18:05:47 2003
+++ shadow/47149.tmp.11824	Wed Jul 30 18:05:47 2003
@@ -0,0 +1,34 @@
+Bug#: 47149
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: duncan@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs should report CS0175
+
+Sample:
+using System.Collections;
+class Collection : CollectionBase
+{
+	public int Add (int x)
+	{
+		return ((IList) base).Add (x);
+	}
+}
+
+Actual Results:
+syntax error, expecting OPEN_BRACKET DOT
+error CS1002: Expecting `;'
+
+Expected Results:
+error CS0175: Use of keyword base is not valid in this context