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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 14 15:57:50 EST 2008


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


           Summary: Confusing compiler that doesn't match MS.NET regarding
                    out params recursively
           Product: Mono: Compilers
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: aaragoneses at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


public class Programa
    {
        static void Jajaja (out int mengano)
        {
            mengano = 3;
        }

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

        static void Main(string[] args)
        {
            int fulano;
            Run(out fulano);
            Console.WriteLine(fulano);
        }

    }

csc returns:
Error   1       The best overloaded method match for
'ConsoleApplication1.Program.Jajaja(out int)' has some invalid arguments
Error   2       Argument '1' must be passed with the 'out' keyword

gmcs returns:
"Use of unassigned out parameter `mengano'(CS0269)"


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