https://issues.dlang.org/show_bug.cgi?id=20152
Issue ID: 20152
Summary: numeric expression should not evaluate to const type
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
void main()
{
const double a = 1, b = 2;
pragma(msg, typeof(a * b));
}
prints `const(double)`
expected result: `double`
--
