November 10 [Issue 24851] New: Some members of CustomFloat can have const this | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24851 Issue ID: 24851 Summary: Some members of CustomFloat can have const this Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody@puremagic.com Reporter: tim.dlang@t-online.de The following currently fails for const variables: ``` const CustomFloat!16 x = CustomFloat!16(3); assert(x.get!float == 3); assert(x.re.get!float == 3); assert(x + x == 6); assert(x + 1 == 4); assert(2 + x == 5); assert(x < 4); ``` -- |
Copyright © 1999-2021 by the D Language Foundation