[Mono-bugs] [Bug 367536] New: CS0515 not reported for generic classes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 5 16:07:08 EST 2008


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


           Summary: CS0515 not reported for generic classes
           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: ---


gmcs does not report CS0515 when an access modifier is defined on a static
constructor.

To reproduce, compile the following code:

public class Gen <T>
{
        public static Gen ()
        {
        }
}

Expected result:

test.cs(3,16): error CS0515: 'Gen<T>.Gen()': access modifiers are not allowed
on
static constructors

Actual result:

No 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