[Mono-bugs] [Bug 353986] New: CS0111 reported instead of CS0132 for non-parameterless cctor

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 15 14:33:55 EST 2008


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


           Summary: CS0111 reported instead of CS0132 for non-parameterless
                    cctor
           Product: Mono: Compilers
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


To reproduce, compile the following code:

class Foo
{
        static Foo ()
        {
        }

        static Foo (int x)
        {
        }

        static void Main ()
        {
        }
}

Expected result:

lib.cs(7,9): error CS0132: 'Foo.Foo(int)': a static constructor must be
parameterless

Actual result:

lib.cs(7,16): error CS0111: A member `Foo.Foo(int)' is already defined. Rename
this member or use different parameter types


-- 
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