← Back to index
|
Original Bugzilla link
Bug 4498 – cannot get return type of a function returning a nested struct with typeof
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-07-23T23:50:00Z
Last change time
2012-07-02T22:47:47Z
Keywords
rejects-valid
Assigned to
nobody
Creator
kamm-removethis
Comments
Comment #0
by kamm-removethis — 2010-07-23T23:50:08Z
auto foo() { struct S {} S s; return s; } static assert(is(typeof(foo()))); // fails
Comment #1
by issues.dlang — 2012-07-02T22:47:47Z
Works in 2.060head.