[SR-9051] Cannot call a protocol method returning Self in a tuple type on an existential #51554
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
Swift version 4.2-dev (LLVM c4a0883115, Clang 0a99881462, Swift 533575ab62)
Target: x86_64-apple-darwin17.7.0
Additional Detail from JIRA
md5: e59125b45533bbfce9faaa478e0523d2
duplicates:
Issue Description:
The following doesn't compile:
However it does compile when
foo()
returnsSelf
directly:The text was updated successfully, but these errors were encountered: