[Mono-bugs] [Bug 692149] Named Parameter evaluation order doesn't match spec or MS implementation

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri May 6 21:02:01 EDT 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=692149#c3


--- Comment #3 from Ivan Hamilton <ivan at chimerical.com.au> 2011-05-07 01:02:00 UTC ---
class Test
{
    static int f(int a){System.Console.Write(a);return a;}
    static void m(int a, int b, int c){System.Console.WriteLine();}
    static void m(int a, int b, int c, int d){System.Console.WriteLine();}

    static void Main(){
        m(f(1),b:f(2),c:f(3));
        m(a:f(1),c:f(2),b:f(3));
        m(f(1),c:f(2),b:f(3));
        m(f(1),f(2),c:f(3),d:f(4));
        m(f(1),f(2),d:f(3),c:f(4));
    }
}

f() should always be called (in order) 1,2,3 or 1,2,3,4.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list