[Issue 303] delegate in finally
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 21 07:09:43 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=303
------- Comment #1 from benoit at tionex.de 2006-08-21 09:09 -------
Sorry pasted the wrong snippet... Now the correct one :)
int func2( char[] msg ){
return 1;
}
int func( char[] delegate() dg ){
return func2( dg() );
}
void main(){
try{
}
finally{
func(""); // line 14
}
}
compiled with dmd 0.165 =>
t.d(14): return statements cannot be in finally, scope(exit) or scope(success)
bodies
--
More information about the Digitalmars-d-bugs
mailing list