Files
ldc/test/bug1.d
Tomas Lindquist Olsen 53038b0f5e [svn r27] * Fixed bug in aggregate field lookup.
* Fixed structs with no fields.
* Added support for NegExp as in -x.
2007-10-04 09:24:15 +02:00

6 lines
195 B
D

module bug1;
struct Foo { Foo opSub(ref Foo b) { return Foo(); } }
struct Bar { Foo whee; }
void test(ref Bar moo) { Foo nngh; auto plonk = nngh - moo.whee; }
void main() { Bar bar; test(bar); }