[Issue 11900] Implicit cast of string literal -> char* causing ambiguous call

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 14 12:24:56 UTC 2023


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

Nick Treleaven <nick at geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org
           Severity|normal                      |enhancement

--- Comment #8 from Nick Treleaven <nick at geany.org> ---
The spec does say:
> String literals can implicitly convert to any of the following types, *they have equal weight*
https://dlang.org/spec/expression.html#string_literals

So changing this to an enhancement.

--


More information about the Digitalmars-d-bugs mailing list