[SR-7425] ambiguity error when class constraining protocol extension fulfills protocol requirement #49968
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.1
Environment
Fails in swift-DEVELOPMENT-SNAPSHOT-2018-04-12-a.xctoolchain
Works in "Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)"
Additional Detail from JIRA
md5: d734e2e0a61ae390ce066c2f52dedc35
is duplicated by:
relates to:
Issue Description:
Sorry if my summary is incorrect.
We have code that looks like this:
This compiles with "Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)".
With swift-DEVELOPMENT-SNAPSHOT-2018-04-12-a.xctoolchain this gives error:
The ambiguity can be resolved by making sure that self is of type C:
Is this ambiguity error the expected behavior?
The text was updated successfully, but these errors were encountered: