[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 01:39:39 EST 2009


User atsushi at ximian.com added comment

Atsushi Enomoto <atsushi at ximian.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |atsushi at ximian.com
         Resolution|                            |INVALID

--- Comment #1 from Atsushi Enomoto <atsushi at ximian.com>  2009-02-08 23:39:37 MST ---
The sample code is wrong (both mcs and csc rejects for out-less argument in
"Jajava(mengano);" . The following code fixes the sample and there is no
difference between csc and mcs.

using System;
public class Programa
        static void Jajaja (out int mengano)
            mengano = 3;

        static void Run(out int mengano)
            Jajaja (out mengano);

        static void Main(string[] args)
            int fulano;
            Run(out fulano);


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