[stdlib] Make protocol _NSArrayCore internal

These shadow protocols don’t add any real type safety, and exposing them in the ABI seems unnecessary.
This commit is contained in:
Karoy Lorentey
2018-11-12 15:44:09 +00:00
parent c71abaaf51
commit ee17e975ca
9 changed files with 131 additions and 106 deletions

View File

@@ -431,7 +431,7 @@ internal struct _ContiguousArrayBuffer<Element> : _ArrayBufferProtocol {
///
/// - Complexity: O(1).
@inlinable
internal __consuming func _asCocoaArray() -> _NSArrayCore {
internal __consuming func _asCocoaArray() -> AnyObject {
if count == 0 {
return _emptyArrayStorage
}