[Issue 9613] New: Parser bug when using .init with type constructor
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Feb 27 15:41:57 PST 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=9613
           Summary: Parser bug when using .init with type constructor
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-27 15:41:56 PST ---
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.
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list