struct Foo(string s) { string var; void func() { string local = var; } } Foo!null a; Foo!null b; --------------------------- Result: test.d(6): Error: this for var needs to be type Foo not type Foo!(null) --------------------------- Both 'a' and 'b' need to be there to trigger this bug.
https://github.com/D-Programming-Language/dmd/pull/616
https://github.com/D-Programming-Language/dmd/commit/f800f6e342e2d9ab1ec9a6275b8239463aa1cee8