[Issue 13930] std.concurrency can't send immutable AA to another thread

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jan 5 13:37:26 PST 2015


https://issues.dlang.org/show_bug.cgi?id=13930

--- Comment #1 from Martin Nowak <code at dawg.eu> ---
Receiving immutable AAs doesn't work either.

cat > bug.d << CODE
import std.concurrency;

void main()
{
    auto aa = receiveOnly!(immutable string[string]);
}
CODE

dmd -c bug

DPL/dmd/src/../../phobos/std/concurrency.d(760): Error: cannot modify immutable
expression ret.__expand_field_0
bug.d(5): Error: template instance
std.concurrency.receiveOnly!(immutable(string[string])) error instantiating

--


More information about the Digitalmars-d-bugs mailing list