Skip to content

Commit 338faab

Browse files
[test] Adjusting stdlib ocurrences where class syntax is used for protocol inheritance
1 parent 158bf61 commit 338faab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

stdlib/public/Darwin/CoreFoundation/CoreFoundation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@_exported import CoreFoundation
1414

15-
public protocol _CFObject: class, Hashable {}
15+
public protocol _CFObject: AnyObject, Hashable {}
1616
extension _CFObject {
1717
public var hashValue: Int {
1818
return Int(bitPattern: CFHash(self))

stdlib/public/core/BridgeObjectiveC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ public func _conditionallyBridgeFromObjectiveC_bridgeable<T:_ObjectiveCBridgeabl
681681
}
682682

683683
public // SPI(Foundation)
684-
protocol _NSSwiftValue: class {
684+
protocol _NSSwiftValue: AnyObject {
685685
init(_ value: Any)
686686
var value: Any { get }
687687
static var null: AnyObject { get }

stdlib/public/core/ExistentialCollection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ extension AnyRandomAccessCollection {
16411641
//===----------------------------------------------------------------------===//
16421642

16431643
@usableFromInline
1644-
internal protocol _AnyIndexBox: class {
1644+
internal protocol _AnyIndexBox: AnyObject {
16451645
var _typeID: ObjectIdentifier { get }
16461646

16471647
func _unbox<T: Comparable>() -> T?

0 commit comments

Comments
 (0)