diff options
author | Ben Maurer <benm@mono-cvs.ximian.com> | 2004-01-01 00:21:55 +0300 |
---|---|---|
committer | Ben Maurer <benm@mono-cvs.ximian.com> | 2004-01-01 00:21:55 +0300 |
commit | 54c4192ee6014db809a9090af9f8ddc23e91394a (patch) | |
tree | 638250913fd101d4c80dbb31395a9a313ed45bca /mcs/errors/cs0229.cs | |
parent | 21e80144b2b0b468765b3158c4e35618f494a86f (diff) |
we do not report cs0229 at all really
svn path=/trunk/mcs/; revision=21575
Diffstat (limited to 'mcs/errors/cs0229.cs')
-rw-r--r-- | mcs/errors/cs0229.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/errors/cs0229.cs b/mcs/errors/cs0229.cs new file mode 100644 index 00000000000..e69c449ac9b --- /dev/null +++ b/mcs/errors/cs0229.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 |