[Issue 9626] More precise error message in some cases when failed template constraint
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 25 10:38:23 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=9626
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |FIXED
--- Comment #4 from RazvanN <razvan.nitu1305 at gmail.com> ---
This has been fixed. Currently, for the bug report I get:
test.d(5): Error: none of the overloads of template
`std.algorithm.sorting.sort` are callable using argument types `!()(DList!int)`
../phobos/std/algorithm/sorting.d(1925): Candidate is: `sort(alias less
= "a < b", SwapStrategy ss = SwapStrategy.unstable, Range)(Range r)`
with `less = "a < b",
ss = SwapStrategy.unstable,
Range = DList!int`
must satisfy one of the following constraints:
` hasSwappableElements!Range
hasAssignableElements!Range
ss != SwapStrategy.unstable`
--
More information about the Digitalmars-d-bugs
mailing list