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-05 22:53:16 +0400
committerMartin Baulig <martin@novell.com>2003-07-05 22:53:16 +0400
commit55dfaa78bb92f744e29d35f819b1f943bcb01869 (patch)
treee8e49a3f78d730e98a97de32e56ca9cd75c92b33 /mcs/tests/test-166.cs
parent15d40af260331566858f060aae1b3405fae25d54 (diff)
2003-07-05 Martin Baulig <martin@ximian.com>
* test-197.cs: New test for bug #42973. svn path=/trunk/mcs/; revision=15964
Diffstat (limited to 'mcs/tests/test-166.cs')
-rw-r--r--mcs/tests/test-166.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/test-166.cs b/mcs/tests/test-166.cs
index aac60257e52..ba956b51d02 100644
--- a/mcs/tests/test-166.cs
+++ b/mcs/tests/test-166.cs
@@ -15,6 +15,24 @@ interface IInferior : ITargetMemoryAccess
{
}
+interface ITest
+{
+ int this [int index] {
+ get;
+ }
+}
+
+class Test : ITest
+{
+ public int this [int index] {
+ get { return 5; }
+ }
+
+ int ITest.this [int index] {
+ get { return 8; }
+ }
+}
+
class D : IInferior
{
public int TargetIntegerSize {
@@ -33,6 +51,14 @@ class D : IInferior
if (d.Hello (d) != 5)
return 1;
+ Test test = new Test ();
+ ITest itest = test;
+
+ if (test [0] != 5)
+ return 2;
+ if (itest [0] != 8)
+ return 3;
+
return 0;
}
}