mirror of
https://github.com/apple/swift-collections
synced 2026-11-22 04:20:40 +00:00
`Heap._checkInvariants()` was `internal` when COLLECTIONS_INTERNAL_CHECKS is defined but `public` otherwise, so code outside `HeapModule` compiled normally and then failed in an internal checks build. Make both declarations `public`, matching `OrderedSet`, `OrderedDictionary`, `BitSet` and `BitArray`, and add a test that calls it through a plain `import HeapModule`. Fixes #813