You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-11212 Ill-typed patterns are permitted to compile (implicit tupling/untupling)
Issue Description:
why does this work:
{{}}
funcfoo<T, U>(_bar1:T?, _bar2:U?)
{
switch (bar1, bar2)
{
case (leta?, letb?):
print(a, b)
case (leta?, nil):
print(a, -1)
case(nil, letb?):
print(-1, b)
case (nil, nil):
print("")
}
}
{{}}
but not this?
switch (Optional<Int>(1), Optional<(Int, Int)>((5, 6)))
{
case (leta?, letb?):
print(a, b)
case (leta?, nil):
print(a, -1)
case(nil, letb?):
print(-1, b)
case (nil, nil):
print("")
}
Environment
$ swift --version
Swift version 5.1-dev (LLVM 200186e28b, Swift 75a5496)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
md5: 17cc87614deb65870fadbaf0dd67d61d
is blocked by:
Issue Description:
why does this work:
{{}}
{{}}
but not this?
{{}}
The text was updated successfully, but these errors were encountered: