Skip to content

Commit cfc266e

Browse files
committed
Fix accidental use of new feature in -e
The change in #1188 accidentally used a 5.7 feature (multi-statement closure result type inference), but it needs to support at least 5.6 for the earlyswiftdriver pass. Add an explicit type to avoid this problem.
1 parent 9eb96cf commit cfc266e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftDriver/Driver/Driver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ extension Driver {
17951795
fileSystem: FileSystem
17961796
) throws -> [TypedVirtualPath] {
17971797
var swiftFiles = [String: String]() // [Basename: Path]
1798-
var paths = try parsedOptions.allInputs.map { input in
1798+
var paths: [TypedVirtualPath] = try parsedOptions.allInputs.map { input in
17991799
// Standard input is assumed to be Swift code.
18001800
if input == "-" {
18011801
return TypedVirtualPath(file: .standardInput, type: .swift)

0 commit comments

Comments
 (0)