Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
In the code below, suppose you are going to overide method "X" in D class.
public virtual async Task<B> X ()
return new B ();
class D : B
On the text editor, you type "override" and get override candidates. Select "X()..."
The resulting D class looks like this:
class D : B
public override async Task<B> X ()
return base.X ();
It doesn't compile. Because by having "async" keyword, it is expected to return B, not Task<B>. But base.X() returns Task.
VS2015 doesn't seem to add this "async".
Note that if you are overriding a method from different assembly, you won't get "async" in the generated signature (because "async" does not exist in the resulting dll).
Fixed in version 126.96.36.1993 (roslyn)