[SR-7963] [4.2 Regression] Bool.toggle
is not properly annotated with availability.
#50498
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Environment
Xcode 10 beta 1
macOS 10.14 Mojave beta 1
Additional Detail from JIRA
md5: 80946a25b7c4bf92050eb1c29ad45e86
Issue Description:
`Bool.toggle` currently leaks into Swift 4.0 mode, breaking sources that have already extended `Bool` with such method. The `!swift(>=4.2)` directive does not help, and the `compiler` directive has not yet implemented.
The method should be annotated with `@available(swift, introduced: 4.2)` IMO.
The text was updated successfully, but these errors were encountered: