[Issue 6484] compose can't take multi arg functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 28 16:20:43 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=6484
Paul Backus <snarwin+bugzilla at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |snarwin+bugzilla at gmail.com
--- Comment #4 from Paul Backus <snarwin+bugzilla at gmail.com> ---
This bug still exists in 2.094.0. The example in comment 3 fails to compile,
with the following output:
---
bug.d(7): Error: template `std.functional.compose!(f, compose).compose` cannot
deduce function from argument types `!()(int, int, int)`, candidates are:
/usr/include/dmd/phobos/std/functional.d(1161): `compose(E)(E a)`
bug.d(7): while evaluating: `static assert(compose(E)(E a)(1, 2, 3) ==
f(g(h(1, 2, 3))))`
---
--
More information about the Digitalmars-d-bugs
mailing list