[Issue 24707] New: error message has bad attribute order
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 17 04:49:55 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24707
Issue ID: 24707
Summary: error message has bad attribute order
Product: D
Version: D2
Hardware: All
URL: http://dlang.org/
OS: All
Status: NEW
Severity: minor
Priority: P3
Component: dmd
Assignee: nobody at puremagic.com
Reporter: turkeyman at gmail.com
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
--
More information about the Digitalmars-d-bugs
mailing list