[swift-evolution] [Pitch] unavailable(*) attribute as alias for available(*, unavailable)
Dan Loewenherz
dan at lionheartsw.com
Wed Jul 20 09:41:47 CDT 2016
Oops, some typos in my original message. Fixes below:
On Wed, Jul 20, 2016 at 9:22 AM, Dan Loewenherz <dan at lionheartsw.com> wrote:
> // Make the method unavailable on watchOS, refer to its renamed counterpart
> @unavailable(*, renamed=“hello") == @available(*, renamed="hello", unavailable)
Should be:
@unavailable(watchOS, renamed=“hello”)
>
> // Make the method unavailable on watchOS, refer to its renamed
> counterpart, and add a message
> @unavailable(*, renamed="hello", message="This method had been
renamed”)
Should be:
@unavailable(watchOS, renamed=“hello”, message=“This method had been renamed")
Dan
More information about the swift-evolution
mailing list