[SR-5695] Error defining closure with more than 3 parameters #48265
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42).
Apple Swift version 4.0 (swiftlang-900.0.43 clang-900.0.22.8)
Additional Detail from JIRA
md5: 03635233dda6fdda8b87b899b7558577
duplicates:
Issue Description:
This works:
But with more than 3 parameters, it fails with a bogus error:
Same thing happens with 5 or more:
Swift 4.0 beta 5 tuple deconstruction also only works up to 3 parameters, and fails with more:
The text was updated successfully, but these errors were encountered: