[Issue 303] New: delegate in finally
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Aug 21 07:05:17 PDT 2006
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=303
           Summary: delegate in finally
           Product: D
           Version: 0.165
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: benoit at tionex.de
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): function t.func (char[] delegate()) does not match argument types ()
t.d(14): Error: expected 1 arguments, not 0
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list