Skip to content

Commit 67f62a1

Browse files
authored
Merge pull request swiftlang#22272 from moiseev/intents-warnings
Remove access specifiers on some extensions to avoid warnings
2 parents f1b8c91 + 714982b commit 67f62a1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

stdlib/public/Darwin/Intents/INParameter.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import Foundation
1818
extension INParameter {
1919
@nonobjc
2020
public convenience init?<Root, Value>(keyPath: KeyPath<Root, Value>) {
21-
if let aClass = Root.self as? AnyClass, let keyPathString = keyPath._kvcKeyPathString {
21+
if let aClass = Root.self as? AnyClass,
22+
let keyPathString = keyPath._kvcKeyPathString {
2223
self.init(for: aClass, keyPath: keyPathString)
2324
} else {
2425
return nil

stdlib/public/Darwin/Intents/INShortcut.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public enum INShortcut : ReferenceConvertible {
3535

3636
// Convenience initializers, to mimic the ObjC initializer API
3737
@available(iOS 12.0, watchOS 5.0, *)
38-
public extension INShortcut {
38+
extension INShortcut {
3939
public init?(intent: INIntent) {
4040
// use the ObjC initializer, to re-use its validation of the intent
4141
guard let ref = INShortcutReference(intent: intent) else { return nil }
@@ -48,7 +48,7 @@ public extension INShortcut {
4848

4949
// Convenience properties, to mimic the ObjC API
5050
@available(iOS 12.0, watchOS 5.0, *)
51-
public extension INShortcut {
51+
extension INShortcut {
5252
public var intent: INIntent? {
5353
guard case let .intent(intent) = self else { return nil }
5454
return intent
@@ -84,7 +84,7 @@ extension INShortcut : Hashable {
8484
extension INShortcut : Equatable {}
8585

8686
@available(iOS 12.0, watchOS 5.0, *)
87-
private extension INShortcut {
87+
extension INShortcut {
8888
fileprivate var reference: INShortcutReference {
8989
switch self {
9090
case .intent(let intent):

0 commit comments

Comments
 (0)