[Issue 2197] Need warning on declared, but unaccessed, variables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 9 12:09:27 PDT 2009


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





------- Comment #2 from matti.niemenmaa+dbugzilla at iki.fi  2009-04-09 14:09 -------
We already can omit parameter names, the following goes through 1.042 just
fine:

class Foo {
        int foo(int, int) {
                return 7;
        }
}

void main() {
        assert ((new Foo).foo(42, 19) == 7);
}


-- 



More information about the Digitalmars-d-bugs mailing list