Mercurial > projects > dstress
view run/alias_13.d @ 1330:f3f715978184
Georg Wrede <georg@iki.fi>
2007-01-07
mail:45A120F5.1050108@iki.fi
author | thomask |
---|---|
date | Sat, 13 Jan 2007 10:33:49 +0000 |
parents | c69c59de5477 |
children | 52c9e86b6486 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Thomas Kuehne <thomas@kuehne.thisisspam.cn> // @date@ 2005-01-22 // @uri@ news:csu1gv$see$1@digitaldaemon.com // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2737 module dstress.run.alias_13; int status; class Check{ void sum(byte[] b){ status++; } void add(byte b){ assert(0); } alias sum write; alias add write; void test(){ byte[] buffer; write(buffer); } } int main(){ Check c = new Check(); status=0; assert(status==0); c.test(); assert(status==1); return 0; }