Skip to content

Adopt typed throws in withKnownIssue(). - #1998

Draft
grynspan wants to merge 2 commits into
mainfrom
jgrynspan/typed-throws-withknownissue
Draft

grynspan wants to merge 2 commits into
mainfrom
jgrynspan/typed-throws-withknownissue

Conversation

@grynspan

@grynspan grynspan commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

This PR adopts typed throws in withKnownIssue() and its support code. The adoption of typed throws is an ABI-breaking change and a visible change to our API surface, so we may need to go through Swift Evolution for this change. Or, we can consider SE-0413 § Standard library operations that rethrow as binding precedent.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR adopts typed throws in `withKnownIssue()` and its support code. The
adoption of typed throws is an ABI-breaking change and a visible change to our
API surface, so we may need to go through Swift Evolution for this change.
@grynspan grynspan added this to the Swift 6.5.0 (main) milestone Oct 30, 2026
@grynspan grynspan self-assigned this Oct 30, 2026
@grynspan grynspan added public-api Affects public API performance 🏎️ Performance issues embedded-swift 📟 Embedded Swift issues issue-handling Related to Issue handling within the testing library labels Oct 30, 2026
@grynspan grynspan added the typed-throws 🤽 Adoption of, or issues related to, the typed throws language feature label Oct 30, 2026
@grynspan

Copy link
Copy Markdown
Contributor Author

Looks like we can't merge this because the type checker doesn't want to pick the non-throwing overload of withKnownIssue(), which makes it a source-breaking change.

@grynspan
grynspan marked this pull request as draft October 30, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

embedded-swift 📟 Embedded Swift issues issue-handling Related to Issue handling within the testing library performance 🏎️ Performance issues public-api Affects public API typed-throws 🤽 Adoption of, or issues related to, the typed throws language feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant