Skip to content

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

@hamishknight

Description

@hamishknight

This currently compiles without error:

_ = { (@objc x: Int) in 0 }

Metadata

Metadata

Assignees

Labels

accepts invalidBug: Accepts invalidbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.closuresFeature: closurescompilerThe Swift compiler itselfexpressionsFeature: expressionsfunction parametersFeature → declarations: function parametersswift 6.0type checkerArea → compiler: Semantic analysis

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions