Skip to content

Commit 72dee38

Browse files
committed
Update protocol compositions to SE-0095 syntax
https://bugs.swift.org/browse/SR-1938
1 parent 9cfa0cf commit 72dee38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/URL.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ public struct URLResourceValues {
197197
/// An identifier which can be used to compare two file system objects for equality using `isEqual`.
198198
///
199199
/// Two object identifiers are equal if they have the same file system path or if the paths are linked to same inode on the same file system. This identifier is not persistent across system restarts.
200-
public var fileResourceIdentifier: protocol<NSCopying, NSCoding, NSSecureCoding, NSObjectProtocol>? { return _get(.fileResourceIdentifierKey) }
200+
public var fileResourceIdentifier: (NSCopying & NSCoding & NSSecureCoding & NSObjectProtocol)? { return _get(.fileResourceIdentifierKey) }
201201

202202
/// An identifier that can be used to identify the volume the file system object is on.
203203
///
204204
/// Other objects on the same volume will have the same volume identifier and can be compared using for equality using `isEqual`. This identifier is not persistent across system restarts.
205-
public var volumeIdentifier: protocol<NSCopying, NSCoding, NSSecureCoding, NSObjectProtocol>? { return _get(.volumeIdentifierKey) }
205+
public var volumeIdentifier: (NSCopying & NSCoding & NSSecureCoding & NSObjectProtocol)? { return _get(.volumeIdentifierKey) }
206206

207207
/// The optimal block size when reading or writing this file's data, or nil if not available.
208208
public var preferredIOBlockSize: Int? { return _get(.preferredIOBlockSizeKey) }

0 commit comments

Comments
 (0)