Bug 1051 - Code completion can't handle interface return types properly
Summary: Code completion can't handle interface return types properly
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: Low normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-09-26 09:10 UTC by Alan McGovern
Modified: 2015-08-20 03:24 UTC (History)
1 user (show)

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


Attachments
screenshot (305.69 KB, image/png)
2011-09-26 09:10 UTC, Alan McGovern
Details


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 Alan McGovern 2011-09-26 09:10:45 UTC
Created attachment 491 [details]
screenshot

Completion should be offering me types which derive from IEnumerable<string> in this example. The only option it gives me is: return new IEnumerable<string> ();  This is obviously invalid as you can't instantiate interfaces :)
Comment 1 Mike Krüger 2011-09-27 03:18:24 UTC
ouch you found the thing that can't be done in a speed efficient manner atm :(
Comment 2 Mike Krüger 2012-04-14 06:47:13 UTC
Now with the new type system and proper type inference I've no excuse not implementing that :/


Implemented.