[Issue 24023] New: Unnecessary module prefix in error message types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 30 12:21:11 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24023
Issue ID: 24023
Summary: Unnecessary module prefix in error message types
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: nick at geany.org
The following code (in callconst.d):
struct X {}
void main()
{
auto x = const X();
func(x);
}
void func(ref X);
Produces unnecessary module prefixes in the supplementary error line:
callconst.d(13): Error: function `callconst.func(ref X)` is not callable using
argument types `(const(X))`
callconst.d(13): cannot pass argument `x` of type `const(callconst.X)`
to parameter `ref callconst.X`
This just adds noise and could be removed.
PR incoming.
--
More information about the Digitalmars-d-bugs
mailing list