Bug 57531 - [generator] Support [Async] inside categories
Summary: [generator] Support [Async] inside categories
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools (show other bugs)
Version: XI 10.99 (xcode9)
Hardware: PC Mac OS
: Normal enhancement
Target Milestone: 15.7
Assignee: Alex Soto [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-06-15 18:31 UTC by Alex Soto [MSFT]
Modified: 2018-01-16 23:11 UTC (History)
3 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);
}
Comment 1 Alex Soto [MSFT] 2018-01-15 19:49:01 UTC
https://github.com/xamarin/xamarin-macios/pull/3229
Comment 2 Alex Soto [MSFT] 2018-01-16 23:11:37 UTC
Fixed in xamarin-macios/master @ 76dcf100b3ec965237bc77ac315edd3a03adceaf

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