[Issue 9229] Private default arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 28 01:30:46 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9229



--- Comment #2 from bearophile_hugs at eml.cc 2012-12-28 01:30:45 PST ---
(In reply to comment #1)

> int foo(private int n = 1)
> in {
>     return foo(5);
> } body {
>     return n;
> }


Sorry, I meant:


int foo(private int n = 1)
in {
    assert(foo(5)); // OK.
} body {
    return n;
}
void main() {}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list