D2 code: struct Foo { Spam x; alias int[Foo*] Spam; Spam bar() { return x; } } void main() { foreach (y; Foo().bar()) {} } DMD 2.059head gives an error with no line number: Error: cannot create associative array int[Foo*]
Compiles and runs(!) successfully on 2.059 Win32