Summary: __error iso assert failure in struct function in/out
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to