Bug 2600 – Nonuniform treatment of built-in types and user-defined types in value syntax

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-01-21T11:22:00Z
Last change time
2015-06-09T01:27:39Z
Assigned to
nobody
Creator
andrei

Comments

Comment #0 by andrei — 2009-01-21T11:22:39Z
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.
Comment #1 by wbaxter — 2009-01-25T18:35:14Z
This has my vote.
Comment #2 by andrej.mitrovich — 2013-02-04T18:06:46Z
Issue9112 has a pull request and more info. *** This issue has been marked as a duplicate of issue 9112 ***