Skip to content

Commit 4de982a

Browse files
committed
Fix more InternalImportsByDefault errors.
With the upcoming feature `InternalImportsByDefault` enabled, some versions of the Swift compiler diagnose this pattern: ``` import protocol _Concurrency.Actor // error: package protocol cannot refine an internal protocol package protocol Proto: Actor { // ... } ``` Address these diagnostics by importing `_Concurrency` with package access level.
1 parent 7ea21e1 commit 4de982a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/_AsyncFileSystem/AsyncFileSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import protocol _Concurrency.Actor
13+
package import protocol _Concurrency.Actor
1414
@preconcurrency package import struct SystemPackage.Errno
1515
@preconcurrency package import struct SystemPackage.FilePath
1616

Sources/_AsyncFileSystem/WritableStream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import protocol _Concurrency.Actor
11+
package import protocol _Concurrency.Actor
1212

1313
/// An asynchronous output byte stream.
1414
///

0 commit comments

Comments
 (0)