[Mono-bugs] [Bug 445300] Confusing compiler error that doesn't match MS.NET regarding out params recursively

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 9 09:28:46 EST 2009


User aaragoneses at novell.com added comment

Andrés G. Aragoneses <aaragoneses at novell.com> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #2 from Andrés G. Aragoneses <aaragoneses at novell.com>  2009-02-09 07:28:45 MST ---
Both mcs and csc reject the code, but with a different error.

csc tells you that you forgot an out keyword (the signature call doesn't match
with the method one)

mcs tells you that you have used an argument that you have to initialize first

Both errors are correct but the first one is more meaningful in my opinion
(because you write that kind of code because you want the variable to get
assigned in the method, not because you want to send a value).

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