[Issue 12322] Bad error message with wrong Nullable array argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 22 12:14:58 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=12322
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |FIXED
--- Comment #3 from RazvanN <razvan.nitu1305 at gmail.com> ---
The error message is now:
test.d(6): Error: constructor
`std.typecons.Nullable!(int[5]).Nullable.this(inout(int[5]) value) inout` is
not callable using argument types `(int[])`
test.d(6): cannot pass argument `a` of type `int[]` to parameter
`inout(int[5]) value`
test.d(10): Error: constructor
`std.typecons.Nullable!(int[5]).Nullable.this(inout(int[5]) value) inout` is
not callable using argument types `(immutable(int[]))`
test.d(10): cannot pass argument `b` of type `immutable(int)[]` to
parameter `inout(int[5]) value`
--
More information about the Digitalmars-d-bugs
mailing list