[Mono-bugs] [Bug 413414] New: gmcs doesn't special case Nullable<> constraints

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 30 18:05:57 EDT 2008


           Summary: gmcs doesn't special case Nullable<> constraints
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rkumpera at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Under MS, Nullable<> is declared as: "Nullable<T> where T: struct, new()".

This construct is not allowed for regular C# code, but it happens to work for

This property might be verified by running the following program under MS and

using System;
class Driver
        public static void Main ()
                Console.WriteLine (typeof

MS reports: 
NotNullableValueTypeConstraint, DefaultConstructorConstraint

Mono reports:

This is not a SRE issue as the API allows for such constraints to be defined.

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