Files
Nim/tests/overload
metagn 5c58e7d201 fix crash with tyBuiltInTypeClass matching itself (#24462)
fixes #24449

The standalone `seq` type is a `tyBuiltInTypeClass` with a single child
of kind `tySequence`, which itself has no children. This is also the
case for most other `tyBuiltInTypeClass` kinds. However this can cause a
crash in sigmatch when calling `isEmptyContainer` on this child type,
which expects the sequence type to have children. This check was added
in #5557 to prevent empty collections like `@[]` from matching their
respective typeclass, but it's not useful when matching against another
typeclass (which is done here to resolve an ambiguity). So to avoid the
crash, this empty container check is disabled when matching against
another typeclass.

(cherry picked from commit 96043bdbb7)
2024-12-17 15:58:33 +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