[Issue 21663] New: std.concurrency.receiveOnly doesn't work with tuples
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 25 16:45:44 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21663
Issue ID: 21663
Summary: std.concurrency.receiveOnly doesn't work with tuples
Product: D
Version: D2
Hardware: x86
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: deadalnix at gmail.com
See sample code:
int main() {
import std.concurrency;
receiveOnly!(string, bool, bool);
return 0;
}
This works in 2.094 (and the application from which it is extracted also works)
but fails with the following error in 2.095:
/usr/include/dmd/phobos/std/concurrency.d(806): Error: template instance
isAssignable!(string, bool, bool) does not match template declaration
isAssignable(Lhs, Rhs = Lhs)
test.d(3): Error: template instance std.concurrency.receiveOnly!(string, bool,
bool) error instantiating
I have no idea what this error really mean if I'm honest.
--
More information about the Digitalmars-d-bugs
mailing list