[dmd-beta] D 2.059 beta 4

Jesse Phillips jesse.k.phillips at gmail.com
Mon Apr 9 13:53:37 PDT 2012


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 <walter at digitalmars.com> wrote:
>
> http://ftp.digitalmars.com/dmd2beta.zip


More information about the dmd-beta mailing list