[SR-8952] os_log overload has incorrect availability attribute #51457
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Environment
Discovered in Swift 4.2, confirmed in the source of the latest master.
Additional Detail from JIRA
md5: 288038c89c067142d0d19a7920d79f13
Issue Description:
The
os_log
function in the SDK overlay has an overload defined that puts thetype
argument first. But for some reason this overload has an@available
attribute that marks it as macOS 10.14, iOS 12.0, etc even thoughos_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.The text was updated successfully, but these errors were encountered: