Bug 57531 - [generator] Support [Async] inside categories
Summary: [generator] Support [Async] inside categories
Status: CONFIRMED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools (show other bugs)
Version: XI 10.99 (xcode9)
Hardware: PC Mac OS
: Normal enhancement
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-06-15 18:31 UTC by Alex Soto [MSFT]
Modified: 2017-06-15 21:42 UTC (History)
2 users (show)

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


Attachments

Description Alex Soto [MSFT] 2017-06-15 18:31:05 UTC
Having the following definitions generates invalid code

[Category]
[BaseType (typeof (CLGeocoder))]
interface CLGeocoder_ContactsAdditions {
	[Watch (4,0), NoTV, Mac (10,13), iOS (11,0)]
	[Export ("geocodePostalAddress:completionHandler:")]
	[Async] 
	void GeocodePostalAddress (CNPostalAddress postalAddress, CLGeocodeCompletionHandler completionHandler);

	[Watch (4,0), NoTV, Mac (10,13), iOS (11,0)]
	[Export ("geocodePostalAddress:preferredLocale:completionHandler:")]
	[Async]
	void GeocodePostalAddress (CNPostalAddress postalAddress, [NullAllowed] NSLocale locale, CLGeocodeCompletionHandler completionHandler);
}

Note You need to log in before you can comment on or make changes to this bug.