Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/bug1.d Thu Oct 04 09:24:15 2007 +0200 @@ -0,0 +1,5 @@ +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); }