Skip to content

[Typed throws] Support overrides that are contravariant in the thrown error #69922

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 2 commits into from
Nov 16, 2023

Conversation

DougGregor
Copy link
Member

This enables overrides such as

class Super {
  func f() throws { }
}

class Sub: Super {
  override func f() throws(MyError) { }
}

@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor enabled auto-merge November 16, 2023 18:44
@DougGregor DougGregor mentioned this pull request Nov 16, 2023
21 tasks
@DougGregor DougGregor merged commit 359c892 into swiftlang:main Nov 16, 2023
@DougGregor DougGregor deleted the typed-throw-overrides branch November 16, 2023 21:53
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.

1 participant