[SR-2704] T: Protocol generic constraint doesn't accept protocol existentials #45308
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 3.0, both in xcode 8 and in the swiftc 3 toolchain.
Additional Detail from JIRA
md5: 2e6e3deb4b4efc9e73cefa9c355867b0
duplicates:
Issue Description:
I would expect the following to compile. The protocol used as an existential type should also conform to the constraint given in the generic function concrete.
However, it gives the error: error: cannot invoke 'concrete' with an argument list of type '(P)'
The text was updated successfully, but these errors were encountered: