[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


https://bugzilla.novell.com/show_bug.cgi?id=445300

User atsushi at ximian.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445300#c1


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);
            Console.WriteLine(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