[SR-11726] Type inferences work strangely for type parameters with self-conformance #54135
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 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
Target: x86_64-apple-darwin18.7.0
Additional Detail from JIRA
md5: 7c67e0a5cecbbb90e1467b347d7c63ae
Issue Description:
Although I am not sure if it is a bug, type inferences in the following code work strangely.
It may be better to be inferred as `[Error]`. I wonder if it is caused by omitting modifications of type inferences for type parameters with self-conformance when self-conformance of the `Error` protocol was introduced in [SE-0235|https://github.com/apple/swift-evolution/blob/master/proposals/0235-add-result.md].
The text was updated successfully, but these errors were encountered: