[Mono-bugs] [Bug 546410] New: nullable values cannot be passed to not-nullable interface, while ms.net accepts it

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 13 05:14:10 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=546410


           Summary: nullable values cannot be passed to not-nullable
                    interface, while ms.net accepts it
    Classification: Mono
           Product: Mono: Compilers
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: avkekem at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.1
(KHTML, like Gecko) Chrome/4.0.213.1 Safari/532.1

Boolean? test;  //create a bool
Test(test);//pass bool to function
void Test(bool test){}

the test above gives a compiler error cannot convert bool? to bool, while
ms.net is accepting this.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
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