I suppose this could be classified as a regression?

Can't specify static field with 'this.'

void main() {
}

class A {
    static int a;

    static void foo(int a) {
        this.a = a;
    }
}

test.d(8): Error: 'this' is only defined in non-static member functions, not foo

On Mon, Apr 9, 2012 at 12:01 AM, Walter Bright <[email protected]> wrote:
>
> http://ftp.digitalmars.com/dmd2beta.zip
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to