Skip to content

Swift: make extractor compile again after 6.1 upgrade #19315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Apr 25, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Swift: Update errors test
The representation of the errors seems to have changed somewhat in Swift 6.1.
  • Loading branch information
jketema authored and Paolo Tranquilli committed Apr 23, 2025
commit 59faf9fbdf66e2256a1f92abf5e641e671d6f4af
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
deadEnd
| file://:0:0:0:0 | ... = ... |
| file://:0:0:0:0 | ... = ... |
| unspecified.swift:12:20:12:21 | (...) |
| unspecified.swift:25:9:28:9 | switch ErrorExpr { ... } |
3 changes: 2 additions & 1 deletion swift/ql/test/extractor-tests/errors/Errors.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
| file://:0:0:0:0 | ... .combine(_:) | UnresolvedDotExpr |
| file://:0:0:0:0 | <<error type>> | ErrorType |
| file://:0:0:0:0 | <<error type>> | ErrorType |
| file://:0:0:0:0 | <<error type>> | ErrorType |
| overloaded.swift:6:5:6:5 | OverloadedDeclRefExpr | OverloadedDeclRefExpr |
| unresolved.swift:5:1:5:14 | UnresolvedSpecializeExpr | UnresolvedSpecializeExpr |