mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
SE-0326: closure result type inference
https://github.com/apple/swift-evolution/blob/main/proposals/0326-extending-multi-statement-closure-inference.md
This commit is contained in:
1 parent
42987dd849
commit
11a6d53d8a
11 files changed
+19
-19
No files matched your search
@@ -830,7 +830,7 @@ extension Array where Element == Row {
|
||||
extension Row {
|
||||
/// - precondition: Columns all exist in the row.
|
||||
fileprivate func indexes(forColumns columns: [String]) -> [Int] {
|
||||
columns.map { column -> Int in
|
||||
columns.map { column in
|
||||
guard let index = index(forColumn: column) else {
|
||||
fatalError("Column \(column) is not selected")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user