[Issue 19829] __traits(isSame) returns true for some non-local delegate lambdas even when they are different

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 26 21:02:11 UTC 2019


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

--- Comment #3 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
Not really - lambda comparison was implemented in 2.079. Before that any
comparison of lambdas with isSame would return false.

Anyways, the core issue is `x` doesn't impact the serialization of lambdas,
while it should render the lambda incomparable. Fixed here:
https://github.com/dlang/dmd/pull/9710

--


More information about the Digitalmars-d-bugs mailing list