Mercurial > projects > dstress
view run/f/finally_11_A.d @ 1117:9393c8f2bc1e
[Issue 303] delegate in finally
Frank Benoit <benoit@tionex.de>
2006-08-21
news:eccer4$2mda$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 25 Aug 2006 11:42:39 +0000 |
parents | |
children | 1ee9a0dd42d9 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Frank Benoit <benoit@tionex.de> // @date@ 2006-08-21 // @uri@ news:eccer4$2mda$1@digitaldaemon.com // @desc@ [Issue 303] delegate in finally module dstress.run.f.finally_11_A; int func2( char[] msg ){ return msg.length; } int func( char[] delegate() dg ){ return func2( dg() ); } int main(){ try{ }finally{ if(func("some text") != "some text".length){ assert(0); } } return 0; }