[Issue 24177] New: Array literal can implicitly convert to an expected type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 6 14:34:23 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24177
Issue ID: 24177
Summary: Array literal can implicitly convert to an expected
type
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dlang.org
Assignee: nobody at puremagic.com
Reporter: nick at geany.org
The spec should state that an array literal can implicitly convert each of its
elements when there is an expected array type available. (This is much safer
than casting the literal).
PR incoming.
--
More information about the Digitalmars-d-bugs
mailing list