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>2017-08-04 01:24:38 +0300
committerMarek Safar <marek.safar@gmail.com>2017-08-04 01:24:38 +0300
commit3749debbecf134f61f409c47e00798afbe46d310 (patch)
tree75578c12afa778f189ff0eee1c1ae486596fc868 /mcs/tests/test-947.cs
parent77f563b5f22140b1951f40664ec0a741a981a938 (diff)
[mcs] Pending implementation of accessors cannot hide base implementation with different member type
Diffstat (limited to 'mcs/tests/test-947.cs')
-rw-r--r--mcs/tests/test-947.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/mcs/tests/test-947.cs b/mcs/tests/test-947.cs
new file mode 100644
index 00000000000..f2f8cbb8628
--- /dev/null
+++ b/mcs/tests/test-947.cs
@@ -0,0 +1,29 @@
+interface IA
+{
+ int Prop { get; }
+ int this [int arg] { get; }
+}
+
+abstract class B : IA
+{
+ public long Prop => 4;
+
+ int IA.Prop => 1;
+
+ public long this [int arg] => 2;
+
+ int IA.this [int arg] => 4;
+}
+
+class C : B, IA
+{
+ public static void Main ()
+ {
+ }
+
+ public new string Prop {
+ get { return ""; }
+ }
+
+ public new string this [int arg] => "2";
+} \ No newline at end of file