[SR-3102] Protocol conformance constraint doesn't work under certain circumstances #45690
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
Tested with:
Apple Swift version 3.0.1 (swiftlang-800.0.58.6 clang-800.0.42.1)
Apple Swift version 3.0-dev (LLVM 3e3d712024, Clang 1ce5868628, Swift aea9d83)
Additional Detail from JIRA
md5: 97fe5acdaf34cea2a2b16aace2556bee
Issue Description:
The following extension on
Array
works as expected:But when I use
Iterator.Element
instead, I get an error message (error: value of type 'Element' has no member 'description'):However, this should work since
Array
is aSequence
and sinceIterator.Element
andElement
refer to the same type, namely the type of the array elements.The text was updated successfully, but these errors were encountered: