[Issue 4197] New: __error iso assert failure in struct function	in/out statement
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun May 16 04:20:19 PDT 2010
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=4197
           Summary: __error iso assert failure in struct function in/out
                    statement
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: strtr at despam.it
--- Comment #0 from strtr at despam.it 2010-05-16 04:20:19 PDT ---
module main;
const S S1 = S();
struct S 
{
  static S func( S s_ )
  in{ assert(false,random); }
  out(result){ assert(false,random); }
  body{ return s_; }
  const S S2 = func(S());
}
void main(){}
--
main.d(8): Error: __error <---# should be assert failure #
main.d(12): Error: cannot evaluate func((S())) at compile time
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list