Skip to content

Commit 802a0b9

Browse files
authored
[stdlib] Mark public classes as 'open'. (#3876)
Part of SE-0117.
1 parent 0473e99 commit 802a0b9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

stdlib/public/core/ManagedBuffer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import SwiftShims
2323
/// any live elements in the `deinit` of a subclass.
2424
/// - Note: Subclasses must not have any stored properties; any storage
2525
/// needed should be included in `Header`.
26-
public class ManagedBuffer<Header, Element> {
26+
open class ManagedBuffer<Header, Element> {
2727

2828
/// Create a new instance of the most-derived class, calling
2929
/// `factory` on the partially-constructed object to generate

stdlib/public/core/Runtime.swift.gyb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,13 +495,15 @@ class _SwiftNativeNSSet {}
495495
@objc @_swift_native_objc_runtime_base(_SwiftNativeNSEnumeratorBase)
496496
class _SwiftNativeNSEnumerator {}
497497

498+
// FIXME(ABI): move into the Foundation overlay and remove 'open'
498499
@objc @_swift_native_objc_runtime_base(_SwiftNativeNSDataBase)
499-
public class _SwiftNativeNSData {
500+
open class _SwiftNativeNSData {
500501
public init() {}
501502
}
502503

504+
// FIXME(ABI): move into the Foundation overlay and remove 'open'
503505
@objc @_swift_native_objc_runtime_base(_SwiftNativeNSCharacterSetBase)
504-
public class _SwiftNativeNSCharacterSet {
506+
open class _SwiftNativeNSCharacterSet {
505507
public init() {}
506508
}
507509

0 commit comments

Comments
 (0)