Mercurial > projects > dstress
view run/mixin_11.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | b8c0195059d9 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Ben Hinkle <ben.hinkle@gmail.com> // @date@ 2005-04-11 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3619 module dstress.run.mixin_11; int status; template Share(T) { int opEquals(T x){ return status; } } struct List(T){ mixin Share!(List); } int main(){ List!(int) x; List!(int) y; assert(x!=y); status=1; assert(x==y); return 0; }