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


           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: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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
Nullable.

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

using System;
class Driver
{
        public static void Main ()
        {
                Console.WriteLine (typeof
(Nullable<>).GetGenericArguments()[0].GenericParameterAttributes);
        }
}


MS reports: 
NotNullableValueTypeConstraint, DefaultConstructorConstraint

Mono reports:
NotNullableValueTypeConstraint


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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to