[Mono-bugs] [Bug 46788][Maj] Changed - Incrorrect CS0021 when compiling interface hierarchy with indexers

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 23 Jul 2003 11:46:26 -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 martin@ximian.com.

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

--- shadow/46788	Wed Jul 23 09:39:29 2003
+++ shadow/46788.tmp.11712	Wed Jul 23 11:46:26 2003
@@ -5,13 +5,13 @@
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Major
 Component: Misc
-AssignedTo: mono-bugs@ximian.com                            
+AssignedTo: martin@ximian.com                            
 ReportedBy: JoergR@voelcker.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: Incrorrect CS0021 when compiling interface hierarchy with indexers
@@ -38,6 +38,43 @@
 some days ago.
 
 ------- Additional Comments From JoergR@voelcker.com  2003-07-23 09:21 -------
 Created an attachment (id=4951)
 Test case
 
+
+------- Additional Comments From martin@ximian.com  2003-07-23 11:46 -------
+using System;
+
+namespace Bug
+{
+	public interface IIndexer
+	{
+		string this[string s] { get; }
+	}
+	
+	public interface ITest : IIndexer
+	{
+		void Test();
+	}
+	
+	public class IndexerTest : ITest
+	{
+		public string this[string s]
+		{
+			get { return s; }
+		}
+		
+		public void Test()
+		{}
+	}
+	
+	public class Bug
+	{
+		public static void Main()
+		{
+			ITest test = new IndexerTest();
+			
+			string s = test["test"];
+		}
+	}
+}