Skip to content

Commit

Permalink
Fix compile issue on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye committed Dec 28, 2023
1 parent 298bb57 commit 13c9369
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,12 @@ extension AbstractCombineLatest {
}

extension AbstractCombineLatest.Side: Subscriber {
// NOTE: Audited with Combine 2023 release.
// A better implementation is `let combineIdentifier = CombineIdentifier()` IMO.
var combineIdentifier: CombineIdentifier {
CombineIdentifier(AbstractCombineLatest.self)
// `CombineIdentifier(AbstractCombineLatest.self) will cause build fail on non-Darwin platform
// Tracked by https://github.com/apple/swift/issues/70645
CombineIdentifier(AbstractCombineLatest.self as AnyObject)
}

func receive(subscription: Subscription) {
Expand Down

0 comments on commit 13c9369

Please sign in to comment.