[Mono-bugs] [Bug 352151] New: incorrect CS0111

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jan 7 16:33:49 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=352151


           Summary: incorrect CS0111
           Product: Mono: Compilers
           Version: 1.2.6
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: wasabi at larvalstage.net
         QAContact: mono-bugs at ximian.com
          Found By: ---


using System;

namespace MonoTest
{
    public enum TestEnum
    {
        Test = 1,
    }
        public class MainClass
        {
                public static void Main(string[] args)
                {
                        Console.WriteLine("Hello World!");
                }
        }
    public interface ITest
    {
        T Get<T>(object o, TestEnum e);
    }
    public class TestImpl : ITest
    {
        public T Get<T>(object o)
            where T : MainClass
        {
            return default(T);
        }
        public T Get<T>(object o, TestEnum e)
            where T : MainClass
        {
            return default(T);
        }
        T ITest.Get<T>(object o, TestEnum e)
        {
            return default(T);
        }
    }
}

A member `MonoTest.TestImpl.Get<T>(object, MonoTest.TestEnum)' is already
defined. Rename this member or use different parameter types(CS0111)

Removing any of the three: the interface, or either of the class methods,
solves the error.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list