Open mgallegly opened 2 months ago
@mgallegly
Please try specifying the type of the Array's Element. For example...
try csvWriter.write(
row:
[
v1 != nil ? String(v1!) : "",
v2 ?? "",
...
] as [String] // Specifies the type of Element
)
Or, try making the array a variable. For example...
let row = [
v1 != nil ? String(v1!) : "",
v2 ?? "",
...
]
try csvWriter.write(row: row)
Changes made as part of the "Make CSVWriter.write(row:_) generic to accept any Sequence by @bouk in https://github.com/yaslab/CSV.swift/pull/113" change cause issues with the Swift Compiler.
The below code builds fine using CSV version 2.4.2 but fails using the new 2.5.0 version; with this error:
"The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions"