Skip to content
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

Single-expression closures don't do TypeChecker::checkParameterList #76291

Closed
hamishknight opened this issue Sep 5, 2024 · 0 comments · Fixed by #76473
Closed

Single-expression closures don't do TypeChecker::checkParameterList #76291

hamishknight opened this issue Sep 5, 2024 · 0 comments · Fixed by #76473
Assignees
Labels
accepts invalid Bug: Accepts invalid bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. closures Feature: closures compiler The Swift compiler itself expressions Feature: expressions function parameters Feature → declarations: function parameters swift 6.0 type checker Area → compiler: Semantic analysis

Comments

@hamishknight
Copy link
Contributor

This currently compiles without error:

_ = { (@objc x: Int) in 0 }
@hamishknight hamishknight added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself type checker Area → compiler: Semantic analysis accepts invalid Bug: Accepts invalid closures Feature: closures labels Sep 5, 2024
@hamishknight hamishknight self-assigned this Sep 5, 2024
@AnthonyLatsis AnthonyLatsis added swift 6.0 function parameters Feature → declarations: function parameters expressions Feature: expressions labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepts invalid Bug: Accepts invalid bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. closures Feature: closures compiler The Swift compiler itself expressions Feature: expressions function parameters Feature → declarations: function parameters swift 6.0 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants