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:
authorMarek Safar <marek.safar@gmail.com>2016-06-09 15:58:49 +0300
committerMarek Safar <marek.safar@gmail.com>2016-06-09 15:59:49 +0300
commit19880afc7a1bb3339e790897884fff473ba5914f (patch)
tree4f4031a9930f56a9451b88c9f6a0b81f097e4899 /mcs/tests/test-936.cs
parent2774428b2d377ab515ce9fa3d9c32a192252c0e1 (diff)
[mcs] Recognize indexer with accessors using different names. Fixes #41602
Diffstat (limited to 'mcs/tests/test-936.cs')
-rw-r--r--mcs/tests/test-936.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/tests/test-936.cs b/mcs/tests/test-936.cs
new file mode 100644
index 00000000000..ae5af06cee2
--- /dev/null
+++ b/mcs/tests/test-936.cs
@@ -0,0 +1,11 @@
+// Compiler options: -r:test-936-lib.dll
+
+class X
+{
+ public static void Main ()
+ {
+ TypeWithIndexer a = new TypeWithIndexer ();
+ var x = a[0];
+ a[0] = x;
+ }
+} \ No newline at end of file