mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +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
Unit tests
Beware! The contents of this directory are not source stable. They are provided as is, with no compatibility promises across package releases. Future versions of this package can arbitrarily change these files or remove them, without any advance notice. (This can include patch releases.)