[Issue 4498] New: cannot get return type of a function returning a nested struct with typeof
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 23 23:50:09 PDT 2010
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: nobody at puremagic.com
ReportedBy: kamm-removethis at incasoftware.de
--- Comment #0 from Christian Kamm <kamm-removethis at incasoftware.de> 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: -------
More information about the Digitalmars-d-bugs
mailing list