[Mono-bugs] [Bug 358165] New: mcs fooled by out parameter assigned in a condition

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 1 16:37:55 EST 2008


           Summary: mcs fooled by out parameter assigned in a condition
           Product: Mono: Compilers
           Version: 1.9.0
          Platform: i586
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: brad at getcoded.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=192859)
 --> (https://bugzilla.novell.com/attachment.cgi?id=192859)
Test case

When an out parameter is assigned by the out parameter of another method inside
of a conditional (Just look at the test case, it's not that complicated), mcs
doesn't error out like MS .NET does.

When compiling the test case with MS .NET (1.1 and 2.0), I get the following

The out parameter 'val' must be assigned to before control leaves the current

while mcs compiles successfully.

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