[Issue 2600] New: Nonuniform treatment of built-in types and user-defined types in value syntax
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 21 09:22:40 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2600
Summary: Nonuniform treatment of built-in types and user-defined
types in value syntax
Product: D
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: andrei at metalanguage.com
The following code doesn't compile and it should:
alias int A;
void main()
{
auto x = A(4);
}
All types, built-in and user-defined, must offer the ability of construction
with type name followed by a parenthesized list of arguments.
--
More information about the Digitalmars-d-bugs
mailing list