Bug 57801 - Generator should error on [Async] delegates returning non-void
Summary: Generator should error on [Async] delegates returning non-void
Status: CONFIRMED
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
URL:
Depends on:
Blocks:
 
Reported: 2017-06-27 18:11 UTC by Chris Hamons
Modified: 2017-06-27 18:11 UTC (History)
1 user (show)

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


Attachments

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))]
    [DisableDefaultCtor]
    interface AsyncTest
    {
        [Export ("foo:")]
        [Async]
        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.