Files
Nim/tests/overload
metagn 44c1b2a6df fix compound inheritance penalty (#24775)
fixes #24773

`c.inheritancePenalty` is supposed to be used for the entire match, but
in these places the inheritance penalty of a single argument overrides
the entire match penalty. The `+ ord(c.inheritancePenalty < 0)` is
copied from other places that use the same idiom, the intent is that the
existing penalty changes from -1 to 0 first to mark that it participates
in inheritance before adding the inheritance depth.

---------

Co-authored-by: Andreas Rumpf <araq4k@proton.me>
(cherry picked from commit fb93295344)
2025-03-13 12:28:15 +01:00
..
2016-09-03 21:21:06 +10:00
2016-09-03 21:21:06 +10:00
2020-10-30 09:59:38 +01:00
2018-05-02 13:34:54 +02:00
2022-10-24 21:41:29 +02:00
2017-07-25 09:28:23 +02:00
2018-03-05 13:38:32 +01:00