https://issues.dlang.org/show_bug.cgi?id=18615
--- Comment #4 from Simon Na. <[email protected]> --- I've got a PR for Phobos ready at: https://github.com/dlang/phobos/pull/6370 The root cause was that union equality is always bitwise. The compiler issue is 15828, and the consensus seems that implicit union comparison should be a compiler error: https://issues.dlang.org/show_bug.cgi?id=15828 My PR for 18615 works independently of 15828 because I compare the class reference inside the union explicitly with == against rhs's class reference. > Cool! Please let us know if you hit any road bumps etc. ;-) Thanks, it's been smooth sailing so far! -- Simon --
