comparison test/bug1.d @ 23:77e3d1ddae3f trunk

[svn r27] * Fixed bug in aggregate field lookup. * Fixed structs with no fields. * Added support for NegExp as in -x.
author lindquist
date Thu, 04 Oct 2007 09:24:15 +0200
parents
children
comparison
equal deleted inserted replaced
22:a6360e68134a 23:77e3d1ddae3f
1 module bug1;
2 struct Foo { Foo opSub(ref Foo b) { return Foo(); } }
3 struct Bar { Foo whee; }
4 void test(ref Bar moo) { Foo nngh; auto plonk = nngh - moo.whee; }
5 void main() { Bar bar; test(bar); }