Skip to content

Commit 3ffd471

Browse files
committed
TSCBasic: remove close overload in extension
The `FileHandle` extension added an overloaded `close` that causes ambiguity when using `close` on a `FileHandle`. This manifested as a build failure with swiftlang/swift-package-manager#3888. Remove the function as swift-driver, swift-package-manager, and sourcekit-lsp are able to build without this function (relying on Foundation to provide it).
1 parent 4542c46 commit 3ffd471

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/TSCBasic/Process.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,9 +1016,5 @@ extension FileHandle: WritableByteStream {
10161016
public func flush() {
10171017
synchronizeFile()
10181018
}
1019-
1020-
public func close() throws {
1021-
closeFile()
1022-
}
10231019
}
10241020
#endif

0 commit comments

Comments
 (0)