http://bugzilla.novell.com/show_bug.cgi?id=604239
http://bugzilla.novell.com/show_bug.cgi?id=604239#c0 Summary: [regression] type constraint not used in all partial declarations Classification: Mono Product: Mono: Compilers Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Repro: partial class A <T> { void Test () { this.CurrentItem = null; } } partial class A <T> where T : class { T CurrentItem { get; set; } } Result: > 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
