Bug 18908 – Cannot pass concurrency message with a shared and a const, useless error message

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-05-26T11:14:55Z
Last change time
2019-08-18T22:33:20Z
Assigned to
No Owner
Creator
JR

Comments

Comment #0 by zorael — 2018-05-26T11:14:55Z
https://run.dlang.io/is/rZC5kD ------------- import std.concurrency; class Class {} struct Struct {} void fun(shared Class class_, const Struct struct_) {} void main() { shared Class class_; const Struct struct_; thisTid.send(class_, struct_); receive(&fun); } ------------- core.exception.AssertError@/dlang/dmd/linux/bin64/../../src/phobos/std/variant.d(323): Tuple!(shared(Class), const(Struct))
Comment #1 by ag0aep6g — 2019-08-18T22:33:20Z
Works for me since DMD 2.081.