Skip to content

Commit e990c35

Browse files
ExistentialAny
1 parent f43023a commit e990c35

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

Package.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
import PackageDescription
55

6+
let swiftSettings: [SwiftSetting] = [
7+
.enableUpcomingFeature("ExistentialAny"),
8+
]
9+
610
let package = Package(
711
name: "SQLime",
812
platforms: [
@@ -18,11 +22,13 @@ let package = Package(
1822
targets: [
1923
.target(
2024
name: "SQLime",
21-
dependencies: []
25+
dependencies: [],
26+
swiftSettings: swiftSettings
2227
),
2328
.testTarget(
2429
name: "SQLimeTests",
25-
dependencies: ["SQLime"]
30+
dependencies: ["SQLime"],
31+
swiftSettings: swiftSettings
2632
),
2733
]
2834
)

Sources/SQLime/StatementDecoder.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ final class _StatementDecoder: Decoder {
4040
return KeyedDecodingContainer(container)
4141
}
4242

43-
func unkeyedContainer() throws -> UnkeyedDecodingContainer {
43+
func unkeyedContainer() throws -> any UnkeyedDecodingContainer {
4444
throw DecodingError.dataCorrupted(codingPath: codingPath, "`unkeyedContainer()` not supported")
4545
}
4646

47-
func singleValueContainer() throws -> SingleValueDecodingContainer {
47+
func singleValueContainer() throws -> any SingleValueDecodingContainer {
4848
guard let key = codingPath.last else {
4949
throw DecodingError.dataCorrupted(codingPath: codingPath, "key not found")
5050
}
@@ -153,15 +153,15 @@ extension _StatementDecoder {
153153
fatalError()
154154
}
155155

156-
func nestedUnkeyedContainer(forKey key: Key) throws -> UnkeyedDecodingContainer {
156+
func nestedUnkeyedContainer(forKey key: Key) throws -> any UnkeyedDecodingContainer {
157157
fatalError()
158158
}
159159

160-
func superDecoder() throws -> Decoder {
160+
func superDecoder() throws -> any Decoder {
161161
fatalError()
162162
}
163163

164-
func superDecoder(forKey key: Key) throws -> Decoder {
164+
func superDecoder(forKey key: Key) throws -> any Decoder {
165165
fatalError()
166166
}
167167

0 commit comments

Comments
 (0)