[Issue 22993] Missing quotes in octal literal hint

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 6 21:43:42 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22993

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #13958 "Fix 22993 - Suggest
string overload of std.conv.octal" fixing this issue:

- Fix 22993 - Suggest string overload of std.conv.octal

  The previously suggested integer overload has two drawbacks. The literal
  parsed as base 10 and hence can overflow for larger values that are only
  valid in base 8. It also requires additional CTFE because it converts
  the value to string.

  So add quotes to the literal in the error message to suggest the string
  overload.

https://github.com/dlang/dmd/pull/13958

--


More information about the Digitalmars-d-bugs mailing list