https://issues.dlang.org/show_bug.cgi?id=13284
--- Comment #2 from [email protected] --- My fault, I've truncated important part while reducing: ``` import std.stdio; import std.concurrency; import core.time; import core.thread; synchronized class A {} void thread(Tid parent) { bool stop = false; try { while(!stop) { receiveTimeout(dur!"msecs"(1000), (shared A a) { writeln("Got a!"); parent.send(true); stop = true; } , (Variant v) { assert(false, "Unhandled message!"); }); } } catch(Throwable th) { writeln(th.toString); parent.send(true); } } void main() { auto tid = spawn(&thread, thisTid); auto a = new shared A(); tid.send(a); receiveOnly!bool(); } ``` The code is printing "Got a!" on 2.065 and fails on 2.066-rc2. --
