Mercurial > projects > dstress
view run/s/scope_22_D.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | 8d5c55d163fd |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ yama <yama_member@pathlink.com> // @date@ 2006-02-26 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6373 // __DSTRESS_DFLAGS__ -version=always module dstress.run.s.scope_22_D; scope class C{ char[] toString(){ return "hallo bug"; } } int main(){ version(always){ scope C c; c = new C(); } if(c.toString() != "hallo bug"){ assert(0); } return 0; }