Open groue opened 5 years ago
Should be fixed as of https://github.com/apple/swift/pull/22526 and https://github.com/apple/swift/pull/22563. The fix is available in the last Swift release.
@groue, Could you verify if the problem is fixed and if so move the JIRA to "Closed"?
Thanks!
Anna
Environment
Xcode Version 10.2 beta 2 Swift 5 toolchain 06/02/2019 macOS 10.14.3 (18D109)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, 5.0Regression, SourceCompatibility | |Assignee | None | |Priority | Medium | md5: ac90bc1287842cec66ca4d2c3e628f0bIssue Description:
I have a test which won't compile with the Swift 5 compiler (2019-02-06 snapshot), both in Swift 5 and Swift 4.2 modes:
The compiler emits the following error:
The error vanishes when the code is rewritten in the equivalent form below:
For information, the record1, record2 variables are of type `Item`, and the fetchedRecords variable is of type `[Item]`:
To reproduce:
1. Clone https://github.com/groue/GRDB.swift.git
> there is an error :(> there is no error :)