https://issues.dlang.org/show_bug.cgi?id=5538
Kapps <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |FIXED --- Comment #3 from Kapps <[email protected]> --- Looks like this works on DMD head. Updated sample (added name for parameter to allow compiling and wrapped in main): import std.variant, std.concurrency; class C {} void main() { thisTid.send(new immutable(C)()); receive((immutable C c) { writeln("got it!"); }); } DMD 2.065.0: rdmd test.d core.exception.AssertError@/opt/dmd/phobos/std/variant.d(288): immutable(C) DMD Git Head: rdmd test.d got it! --
