Bug 29165 - AvailabilityAttribute not copied to compiler-generated ...Async() methods
Summary: AvailabilityAttribute not copied to compiler-generated ...Async() methods
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-04-16 15:51 UTC by Larry O'Brien
Modified: 2015-04-16 22:09 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Larry O'Brien 2015-04-16 15:51:47 UTC
Compiler-generated async methods, such as `GameKit.GKLeaderboard.SetDefaultLeaderboardAsync(string)`, do not seem to copy the `AvailabilityAttribute` of their source method (e.g., `GameKit.GKLeaderboard.SetDefaultLeaderboard(string, GKNotificiationHandler)`.

The result is that our ...Async methods are not properly marked as deprecated in tooltips or API documentation.
Comment 1 Sebastien Pouliot 2015-04-16 22:09:04 UTC
Good catch!

Fixed in maccore/master cbe36adddc122b4d131b6cc5a0d778737aed2382