[Issue 20904] dip1000 implicit conversion delegates error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 13 12:19:29 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=20904
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #13267 "Fix 21538,20904: Correct implicitConvTo order
for delegate parameters in `Type.covariant`" was merged into master:
- f81a1ccaeb0aa3d5575332ceeca4280b5c585d7d by MoonlightSentinel:
Fix 21538,20904: Correct implicitConvTo order for delegate parameters...
... in `Type.covariant`
The ordering was inversed when compared to function pointers. That caused
the check to accept e.g. less restrictive attributes for callbacks.
Also changed the equality checks for `TypeFuntion` and `TypeDelegate`
to `equals` because `==` didn't call the former and hence caused problems
for duplicate instances.
https://github.com/dlang/dmd/pull/13267
--
More information about the Digitalmars-d-bugs
mailing list