Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2003-07-25 19:52:38 +0400
committerMartin Baulig <martin@novell.com>2003-07-25 19:52:38 +0400
commit816edb9e7a56e59d91b6be8c349c5743451ac80d (patch)
tree9016c890aa6434f196bc0db98f83b9b22fc49483 /mcs/tests/test-208.cs
parentc1f3a6b4941743724dea4f1bb69c8fce12735567 (diff)
2003-07-25 Martin Baulig <martin@ximian.com>
* test-208.cs: New test for bug #46788. svn path=/trunk/mcs/; revision=16668
Diffstat (limited to 'mcs/tests/test-208.cs')
-rw-r--r--mcs/tests/test-208.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/mcs/tests/test-208.cs b/mcs/tests/test-208.cs
new file mode 100644
index 00000000000..ced1e9d789b
--- /dev/null
+++ b/mcs/tests/test-208.cs
@@ -0,0 +1,34 @@
+using System;
+
+interface A
+{
+ string this [string s] { get; }
+}
+
+interface B : A
+{
+ void Test ();
+}
+
+class X : B
+{
+ public string this [string s] {
+ get {
+ return s;
+ }
+ }
+
+ public void Test ()
+ { }
+}
+
+public class Y
+{
+ public static void Main ()
+ {
+ B b = new X ();
+
+ string s = b ["test"];
+ }
+}
+