[Issue 9357] New: Floating-point literal should always be printed with a period

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 20 10:00:31 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9357

           Summary: Floating-point literal should always be printed with a
                    period
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: pull
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: andrej.mitrovich at gmail.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-20 10:00:30 PST ---
void main()
{
    int x = 1.0;
}

Error: cannot implicitly convert expression (1) of type double to int

It should be "expression (1.0)". Opened as a separate cause of:
http://d.puremagic.com/issues/show_bug.cgi?id=8807

There are likely similar issues caused by this.

-- 
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