https://issues.dlang.org/show_bug.cgi?id=20904
Dlang Bot <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #2 from Dlang Bot <[email protected]> --- @MoonlightSentinel created dlang/dmd pull request #13267 "Fix 21538,20904: Correct implicitConvTo order for delegate parameters in `Type.covariant`" fixing this issue: - 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 --
