[SR-4378] Swift 3.1 regression inferring type of tuple with generics #46957
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.48 clang-802.0.38)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: 7304cd4263852c034a45e9816087b6ee
Issue Description:
The code (that used to compile):
More info on the types:
Expected result: code still compiles
Actual result: "Type of expression is ambiguous without more context"
Explicitly defining the tuple type works around the ambiguity:
The text was updated successfully, but these errors were encountered: