[Mono-devel-list] Overlapping interface implementation bug in mcs?

Etienne Boucher etienne at novat.qc.ca
Sat Aug 14 18:13:23 EDT 2004


The following code compiles under .NET 2.0 (the only version I have
installed currently) but not under mcs. I get...

Program.cs(3) error CS0535: 'MyNamespace.Implrementation' does not implement
interface member 'MyNamespace.IGetSet.this[int]'

namespace MyNamespace
{
    class Implementation : IGet, IGetSet
    {
        static void Main(string[] args)
        {

        }

        public int this[int index]
        {
            get { return 0; }
            set { }
        }
    }

    interface IGet
    {
        int this[int index] { get; }
    }

    interface IGetSet
    {
        int this[int index] { get; set; }
    }
}

Etienne Boucher




More information about the Mono-devel-list mailing list