Skip to content

Referring to functions with parameter packs as closures crashes the compiler. #66519

@JessyCatterwaul

Description

@JessyCatterwaul
func ƒ<each T>(_: repeat each T) { }

_ = { ƒ() } // fine
_ = ƒ as () -> _ // Command SwiftCompile failed with a nonzero exit code

Metadata

Metadata

Assignees

Labels

SILGenArea → compiler: The SIL generation stageassertion failureBug → crash: An assertion failurebugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareexpressionsFeature: expressionsfunction valuesFeature → expressions: function valuesgenericsFeature: generic declarations and typesparameter packsFeature → generics: Parameter packsswift 5.9

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions