[Mono-bugs] [Bug 604239] New: [regression] type constraint not used in all partial declarations

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 10 07:50:33 EDT 2010



           Summary: [regression] type constraint not used in all partial
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


partial class A <T> {
    void Test () {
        this.CurrentItem = null;

partial class A <T>  where T : class {
    T CurrentItem { get; set; }

> gmcs test.cs
test.cs(3,22): error CS0403: Cannot convert null to the type parameter `T'
because it could be a value type. Consider using `default (T)' instead

Configure bugmail: http://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