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:
authorBen Maurer <benm@mono-cvs.ximian.com>2004-01-01 00:21:55 +0300
committerBen Maurer <benm@mono-cvs.ximian.com>2004-01-01 00:21:55 +0300
commit54c4192ee6014db809a9090af9f8ddc23e91394a (patch)
tree638250913fd101d4c80dbb31395a9a313ed45bca /mcs/errors/cs0229-2.cs
parent21e80144b2b0b468765b3158c4e35618f494a86f (diff)
we do not report cs0229 at all really
svn path=/trunk/mcs/; revision=21575
Diffstat (limited to 'mcs/errors/cs0229-2.cs')
-rw-r--r--mcs/errors/cs0229-2.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/errors/cs0229-2.cs b/mcs/errors/cs0229-2.cs
new file mode 100644
index 00000000000..4f9d856c586
--- /dev/null
+++ b/mcs/errors/cs0229-2.cs
@@ -0,0 +1,32 @@
+// cs0229.cs: Ambiguity between `IList.Count' and `ICounter.Count (int)'
+// Line: 30
+using System;
+
+interface IList {
+ int Count { get; set; }
+}
+
+interface ICounter {
+ void Count (int i);
+}
+
+interface IListCounter: IList, ICounter {}
+
+
+class ListCounter : IListCounter {
+ int IList.Count {
+ get { Console.WriteLine ("int IList.Count.get"); return 1; }
+ set { Console.WriteLine ("int IList.Count.set"); }
+ }
+
+ void ICounter.Count (int i)
+ {
+ Console.WriteLine ("int ICounter.Count (int i)");
+ }
+
+ static void Main ()
+ {
+ IListCounter t = new ListCounter ();
+ t.Count = 1;
+ }
+} \ No newline at end of file