[Issue 4633] New: typeof({return 1; }()) declaration fails if inside main

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 12 07:43:38 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4633

           Summary: typeof({return 1;}()) declaration fails if inside main
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: simen.endsjo at pandavre.com


--- Comment #0 from simendsjo <simen.endsjo at pandavre.com> 2010-08-12 07:43:37 PDT ---
typeof({return 1;}()) a; // ok

void main()
{
  typeof({return 1;}()) b; // found 'b' when expecting ';' following statement 
}

-- 
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