Bug 24707 – error message has bad parameter attribute order

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-08-17T04:49:55Z
Last change time
2024-08-19T11:29:29Z
Keywords
pull
Assigned to
No Owner
Creator
Manu

Comments

Comment #0 by turkeyman — 2024-08-17T04:49:55Z
I just got this error message: Candidate is: `f(T)(auto inout ref T a, auto inout ref T b)` The function is declared as: auto ref inout(T) f(T)(auto ref inout T a, auto ref inout T b) `auto ref` is a storage class, `inout T` is a type constructor... `auto inout ref` is a confused concept that the compiler should never write in an error message. Please write (storage_class type_constructor type) in all error messages for consistency and clarity
Comment #1 by dlang-bot — 2024-08-18T20:44:22Z
@ntrel created dlang/dmd pull request #16791 "Fix Bugzilla 24707 - error message has bad parameter attribute order" fixing this issue: - Fix Bugzilla 24707 - error message has bad attribute order https://github.com/dlang/dmd/pull/16791
Comment #2 by dlang-bot — 2024-08-19T11:29:29Z
dlang/dmd pull request #16791 "Fix Bugzilla 24707 - error message has bad parameter attribute order" was merged into master: - 8d02367615638580d8c6346ef6c437e4f3843ae2 by Nick Treleaven: Fix Bugzilla 24707 - error message has bad attribute order https://github.com/dlang/dmd/pull/16791