Skip to content

Fix typed-throws compilation issue with Swift 6.2#565

Merged
MatyasKriz merged 1 commit intoBrightify:masterfrom
MaelRB:mrb/fix-typed-throws-swift-6.2
Jun 18, 2025
Merged

Fix typed-throws compilation issue with Swift 6.2#565
MatyasKriz merged 1 commit intoBrightify:masterfrom
MaelRB:mrb/fix-typed-throws-swift-6.2

Conversation

@MaelRB
Copy link
Contributor

@MaelRB MaelRB commented Jun 13, 2025

Newly added typed-throws support doesn't compile with Swift 6.2 for some reason.
Adding Error protocol requirement on generic ERROR type fixes the issue.

Add a Stub test to assert usage of typed thenThrow method.

Tests

  • Xcode 16.4, swift 6.1 ✅
  • Xcode 26, swift 6.2 ✅

@MatyasKriz
Copy link
Collaborator

Thank you for checking that in advance and fixing the issue. 🙂

@MatyasKriz MatyasKriz merged commit e560a3c into Brightify:master Jun 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants