http://d.puremagic.com/issues/show_bug.cgi?id=5186
Summary: typeof({return 0;}()) works in alias declaration, not
as variable type
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Simen Kjaeraas <[email protected]> 2010-11-07 17:18:42
PST ---
This works:
alias typeof( { return 0; }() ) T;
T foo;
This doesnt (found 'foo' when expecting ';' following statement):
typeof( { return 0; }() ) foo;
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------