Cuckoo
Cuckoo copied to clipboard
Fix typed-throws compilation issue with Swift 6.2
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 ✅