Bug 24023 – Unnecessary module prefix in error message types

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-06-30T12:21:11Z
Last change time
2023-06-30T15:36:37Z
Keywords
pull
Assigned to
No Owner
Creator
Nick Treleaven

Comments

Comment #0 by nick — 2023-06-30T12:21:11Z
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.
Comment #1 by dlang-bot — 2023-06-30T12:25:22Z
@ntrel created dlang/dmd pull request #15370 "Fix Issue 24023 - Unnecessary module prefix in error message types" fixing this issue: - Fix Issue 24023 - Unnecessary module prefix in error message types https://github.com/dlang/dmd/pull/15370
Comment #2 by dlang-bot — 2023-06-30T15:36:37Z
dlang/dmd pull request #15370 "Fix Issue 24023 - Unnecessary module prefix in error message types" was merged into master: - c344ba9d8eb34710dc4d875150edfa7a8b0decd8 by Nick Treleaven: Fix Issue 24023 - Unnecessary module prefix in error message types https://github.com/dlang/dmd/pull/15370