[SR-8218] Generic closure tuple argument destructuring fails #50750
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
Xcode 10.0 beta 3 and the Swift toolchain that comes with it
Additional Detail from JIRA
md5: 9ab04c1b9368b586836ed517bb28d908
Issue Description:
I can make this code compile in three ways:
replace `f(.foo)` with `f(Foo.foo)`
replace the static parameter with a global `let foo = Foo<(x: Bar, y: Bar)>()` (and replace `f(.foo)` with `f(foo)`)
remove the labels from the generic constraint, i.e. write `where T == (Bar, Bar)` instead
The text was updated successfully, but these errors were encountered: