Open
Description
Steps to reproduce
func foo(_ a: Any) {
if case (0, 0) = a {} // error: type of expression is ambiguous without more context
}
Test case from #63992 (comment).
Environment
- Swift version 5.9-dev (LLVM 91080e65df791d6, Swift c1d5118)
Metadata
Metadata
Assignees
Labels
A deviation from expected or documented behavior. Also: expected but undesirable behavior.The Swift compiler itselfBug: Diagnostics Quality of ImplementationFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesFeature: pattern matchingFeature: patternsFeature: tuplesArea → compiler: Semantic analysis