[Issue 22940] New: defect: Error: no property `_0L` for type `int`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 26 12:26:20 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22940
Issue ID: 22940
Summary: defect: Error: no property `_0L` for type `int`
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: kdevel at vogtner.de
https://dlang.org/spec/lex.html#floatliteral says:
Floating literals can have embedded ‘_’ characters to improve readability,
and which are ignored.
This code (zzz2.d)
void main ()
{
real r = 1._0L;
}
when compiled with dmd 2.099 gives:
$dmd zzz2
zzz2.d(3): Error: no property `_0L` for type `int`
expected: Software should behave as the manual says or the other way round.
--
More information about the Digitalmars-d-bugs
mailing list