Bug 596 - Completely wrong lambda parameter type inference
Summary: Completely wrong lambda parameter type inference
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Linux
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-09-02 05:43 UTC by Marek Safar
Modified: 2015-08-20 03:24 UTC (History)
2 users (show)

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

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Description Marek Safar 2011-09-02 05:43:14 UTC
using System;
using System.Threading.Tasks;

namespace test2
{
	class MainClass
	{
		public static void Main(string[] args)
		{
			Task.Factory.FromAsync((a, b) => { return null; }, x => { }, null);
		}
	}
}

Hover over a and b
MD says System.IAsyncResult and System.IAsyncResult

but in reality it's

AsyncCallback and object
Comment 1 Mike Krüger 2011-09-09 04:41:01 UTC
Works with the new resolver
Comment 2 Mike Krüger 2011-12-07 07:28:32 UTC
Fixed in newresolver branch/verified.