Skip to content

Allow the main function for @main types to use typed throws #71207

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
Jan 29, 2024

Conversation

DougGregor
Copy link
Member

Allow the use of typed throws for the main functions of @main types, and thread the thrown error through to a new entry point in the library, _errorInMainTyped, which is generic in the thrown error type.

Fixes rdar://121603043.

Allow the use of typed throws for the main functions of `@main` types,
and thread the thrown error through to a new entry point in the library,
`_errorInMainTyped`, which is generic in the thrown error type.

Fixes rdar://121603043.
@DougGregor DougGregor requested review from ktoso, a team, hborla, slavapestov and xedin as code owners January 28, 2024 19:21
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor enabled auto-merge January 28, 2024 19:21
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor merged commit 8f4adb3 into swiftlang:main Jan 29, 2024
@DougGregor DougGregor deleted the typed-throws-in-main-type branch January 29, 2024 19:46
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