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:
Diffstat (limited to 'mcs/errors')
-rw-r--r--mcs/errors/cs0535-7.cs40
-rw-r--r--mcs/errors/cs0535-8.cs40
2 files changed, 80 insertions, 0 deletions
diff --git a/mcs/errors/cs0535-7.cs b/mcs/errors/cs0535-7.cs
new file mode 100644
index 00000000000..11a7670bc1b
--- /dev/null
+++ b/mcs/errors/cs0535-7.cs
@@ -0,0 +1,40 @@
+// CS0535: `CC' does not implement interface member `IA.Coordinate.set'
+// Line: 33
+
+using System;
+
+public interface IA
+{
+ object Coordinate {
+ get;
+ set;
+ }
+}
+
+public abstract class CA : IA
+{
+ public abstract object Coordinate {
+ get;
+ set;
+ }
+}
+
+public partial class CB : CA
+{
+ public override object Coordinate {
+ get {
+ throw new NotImplementedException ();
+ }
+ set {
+ }
+ }
+}
+
+public class CC : CB, IA
+{
+ public new object Coordinate {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+}
diff --git a/mcs/errors/cs0535-8.cs b/mcs/errors/cs0535-8.cs
new file mode 100644
index 00000000000..853794ee31d
--- /dev/null
+++ b/mcs/errors/cs0535-8.cs
@@ -0,0 +1,40 @@
+// CS0535: `CC' does not implement interface member `IA.this[int].set'
+// Line: 33
+
+using System;
+
+public interface IA
+{
+ object this[int arg] {
+ get;
+ set;
+ }
+}
+
+public abstract class CA : IA
+{
+ public abstract object this[int arg] {
+ get;
+ set;
+ }
+}
+
+public partial class CB : CA
+{
+ public override object this[int arg] {
+ get {
+ throw new NotImplementedException ();
+ }
+ set {
+ }
+ }
+}
+
+public class CC : CB, IA
+{
+ public new object this[int arg] {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+}