/ swift Public
[SR-9753] REGRESSION: Ambiguity involving overloads and generics constrained by Error #52182
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
The Swift compiler in itself
Apple Swift version 5.0 (swiftlang-1001.0.45.7 clang-1001.0.37.7)
ABI version: 0.6
Additional Detail from JIRA
I have a generic struct that declares a method, and an extension to this struct that overloads the method in the case where the generic parameter conforms to
Error. This has worked fine so far, but the Swift 5 compiler rejects this as an ambiguity error. It seems to be special-casing
Errorsomehow because this doesn't happen with other protocols. This compiler error happens even in Swift 4 mode (though I don't believe it should happen in Swift 5 mode either).
This error means Xcode 10.2 cannot compile https://github.com/lilyball/Tomorrowland.
The text was updated successfully, but these errors were encountered: