[SR-5273] Bad diagnostic, very simple case of "type of expression is ambiguous without more context" #47848
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
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: 2b9215092fd1b651487b476bcd9fef90
Issue Description:
Removing the unwrap produces a correct result:
The text was updated successfully, but these errors were encountered: