swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.39k stars 10.35k forks source link

[SR-11740] [Source Compat] Bow fails with "overriding declarations in extensions is not supported" #54147

Closed xymus closed 4 years ago

xymus commented 4 years ago
Previous ID SR-11740
Radar rdar://57029805
Original Reporter @xymus
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, TypeChecker | |Assignee | None | |Priority | Medium | md5: b0f3c4bcb3f62783fd4025bede8ff630

Issue Description:

Fails in source compat suites for the master branch similarly to this: https://ci.swift.org/job/swift-master-source-compat-suite/4378

/Users/buildnode/jenkins/workspace-private/swift-master-source-compat-suite/project_cache/Bow/Sources/Bow/Transformers/EitherT.swift:132:24: error: overriding declarations in extensions is not supported
    public static func fromEither(_ either: Either<A, B>) -> EitherT<F, A, B> {
                       ^
/Users/buildnode/jenkins/workspace-private/swift-master-source-compat-suite/project_cache/Bow/Sources/Bow/Typeclasses/ApplicativeError.swift:151:17: note: overridden declaration is here
    static func fromEither(_ fea: Either<F.E, A>) -> Kind<F, A> {
                ^
/Users/buildnode/jenkins/workspace-private/swift-master-source-compat-suite/project_cache/Bow/Sources/Bow/Transformers/WriterT.swift:112:24: error: overriding declarations in extensions is not supported
    public static func tell(_ l: W) -> WriterT<F, W, Unit>  {
                       ^
/Users/buildnode/jenkins/workspace-private/swift-master-source-compat-suite/project_cache/Bow/Sources/Bow/Typeclasses/MonadWriter.swift:95:17: note: overridden declaration is here
    static func tell(_ w: F.W) -> Kind<F, ()> {
                ^
/Users/buildnode/jenkins/workspace-private/swift-master-source-compat-suite/project_cache/Bow/Sources/Bow/Transformers/WriterT.swift:182:17: error: overriding declarations in extensions is not supported
    public func listen() -> Kind<WriterTPartial<F, W>, (W, A)> {
                ^
/Users/buildnode/jenkins/workspace-private/swift-master-source-compat-suite/project_cache/Bow/Sources/Bow/Typeclasses/MonadWriter.swift:75:10: note: overridden declaration is here
    func listen() -> Kind<F, (F.W, A)> {
slavapestov commented 4 years ago

https://github.com/apple/swift/pull/28206