Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-8952] os_log overload has incorrect availability attribute #51457

Open
lilyball mannequin opened this issue Oct 9, 2018 · 1 comment
Open

[SR-8952] os_log overload has incorrect availability attribute #51457

lilyball mannequin opened this issue Oct 9, 2018 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@lilyball
Copy link
Mannequin

lilyball mannequin commented Oct 9, 2018

Previous ID SR-8952
Radar None
Original Reporter @lilyball
Type Bug
Environment

Discovered in Swift 4.2, confirmed in the source of the latest master.

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee None
Priority Medium

md5: 288038c89c067142d0d19a7920d79f13

Issue Description:

The os_log function in the SDK overlay has an overload defined that puts the type argument first. But for some reason this overload has an @available attribute that marks it as macOS 10.14, iOS 12.0, etc even though os_log is available in macOS 10.12, iOS 10.0, etc. The overload may be new in the macOS 10.14, iOS 12, etc SDK, but it's purely an artifact of the SDK overlay and the underlying functions it calls exist in macOS 10.12, iOS 10, etc (in fact, its implementation is literally identical to the original function). There's no reason at all for this overload to have an availability that differs from the original function.

@AnnaZaks
Copy link
Mannequin

AnnaZaks mannequin commented Oct 12, 2018

cc @airspeedswift

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

0 participants