You can specify future Swifts in a 4.2 manifest!

This commit is contained in:
Max Howell
2019-02-13 19:39:27 -05:00
parent 2880aa556b
commit 3735ed4476
2 changed files with 1 additions and 15 deletions

View File

@@ -10,5 +10,5 @@ let pkg = Package(
.target(name: "Path", path: "Sources"),
.testTarget(name: "PathTests", dependencies: ["Path"]),
],
swiftLanguageVersions: [.v4, .v4_2]
swiftLanguageVersions: [.v4, .v4_2, .version("5")]
)

View File

@@ -1,14 +0,0 @@
// swift-tools-version:5.0
import PackageDescription
let pkg = Package(
name: "Path.swift",
products: [
.library(name: "Path", targets: ["Path"]),
],
targets: [
.target(name: "Path", path: "Sources"),
.testTarget(name: "PathTests", dependencies: ["Path"]),
],
swiftLanguageVersions: [.v4, .v4_2, .v5]
)