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

           Summary: cannot get return type of a function returning a
                    nested struct with typeof
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Christian Kamm <[email protected]> 2010-07-23 
23:50:08 PDT ---
auto foo()
{
  struct S {}
  S s;
  return s;
}

static assert(is(typeof(foo()))); // fails

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to