swiftlang / swiftlang/swift-corelibs-libdispatch
Linux: DispatchTimeInterval not Equatable
Open
Nobody has claimed this yet.
Linux
- Dominant language
- C
- Stars
- 2.6k
- Forks
- 496
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
error: binary operator '!=' cannot be applied to two 'DispatchTimeInterval' operands
guard interval != .never else { return nil }
~~~~~~~~ ^ ~~~~~~
This works fine on APPLE platforms.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Linux definition of DispatchTimeInterval and compare its protocol support with the Apple platforms. Reproduce the reported compilation error, then verify that comparing an interval with .never using != compiles on Linux.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100