[SR-7428] Class conforming to protocol with default method implementation no longer compiles with Xcode 9.3 #49971
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
Builds successfully with Xcode 9.2 on any Swift version/platform (swiftlang-900.0.74.1 clang-900.0.39.2)
Compilation error with Xcode 9.3 on all Swift versions/platforms (swiftlang-902.0.48 clang-902.0.37.1)
Additional Detail from JIRA
md5: c7ee6ee47158d038dc3201c8fa542551
is duplicated by:
relates to:
Issue Description:
We have a simple protocol with an associated type and one method
a default implementation for that method via a protocol extension
and a conforming class
This code compiled under both Swift 3.2 and 4.0 with the Swift tools bundled with Xcode 9.2. However, since updating to Xcode 9.3, the compiler produces the following error, under both Swift 3.3 and 4.1:
This occurs regardless of the underlying platform (we tested on both iOS and MacOS), or whether we compile via Xcode or directly on the command line with swiftc.
The text was updated successfully, but these errors were encountered: