Bug 57801 - Generator should error on [Async] delegates returning non-void
Summary: Generator should error on [Async] delegates returning non-void
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools (show other bugs)
Version: master
Hardware: PC Mac OS
: Normal normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
Depends on:
Reported: 2017-06-27 18:11 UTC by Chris Hamons
Modified: 2017-06-27 18:11 UTC (History)
1 user (show)

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


Description Chris Hamons 2017-06-27 18:11:03 UTC
This code errors during compliation

 delegate bool TestCompletionHandler (NSError error);

    [Mac (10,13)]
    [BaseType (typeof(NSObject))]
    interface AsyncTest
        [Export ("foo:")]
        void DoIt (TestCompletionHandler completionHandler);

but we don't support async delegates returning non-void.

I've also filed a documentation bug here https://github.com/xamarin/documentation/issues/2329

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