Mercurial > projects > dstress
view run/v/variadic_argument_10_E.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | b8c0195059d9 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Kris <fu@bar.com> // @date@ 2005-11-18 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5597 module dstress.run.v.variadic_argument_10_E; int state; class Bar{ this(...){ } } class Foo{ void opAddAssign(Bar b){ assert(b); state++; } } int main(){ Foo f = new Foo; assert(state == 0); assert(f); f += new Bar; assert(state == 1); assert(f); return 0; }