Bug 9613 – Parser bug when using .init with type constructor
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-27T15:41:00Z
Last change time
2013-03-01T06:35:29Z
Keywords
pull, rejects-valid
Assigned to
andrej.mitrovich
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2013-02-27T15:41:56Z
void main()
{
auto x = const(byte).init;
auto y = immutable(byte).init;
}
Fix9604.d(3): Error: (arguments) expected following const(byte)
Fix9604.d(3): Error: semicolon expected following auto declaration, not '.'
Both lines fail.
Comment #1 by andrej.mitrovich — 2013-02-28T13:36:49Z