Bug 3298 - Generics do not complete or display correctly
Summary: Generics do not complete or display correctly
Status: RESOLVED DUPLICATE of bug 3356
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: High normal
Target Milestone: master
Assignee: Mike Krüger
Depends on:
Reported: 2012-02-09 06:28 UTC by Alan McGovern
Modified: 2015-08-20 03:24 UTC (History)
1 user (show)

Tags: resolver
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:

Description Alan McGovern 2012-02-09 06:28:56 UTC
public class Foo : List$


When typing 'List' above, the completion window displays the type as 'List' whereas it should be 'List<T>' or similar. If there was a List<T, V> it should show up too as a separate entry.
Comment 1 Alan McGovern 2012-02-09 06:30:27 UTC
public class Foo : List<

Also if i add a "<' as above, it does not display the generic type info and tell me i need to complete the <T> parameter.
Comment 2 Mike Krüger 2012-02-09 07:33:07 UTC
Comment 3 Alan McGovern 2012-02-09 07:54:13 UTC
The generic types now show up correctly in the completion list but as soon as i type 'List<' i lose all completion for the generic parameters.

It'd be nice if we displayed multiple generic classes in the same way as method overloads. i.e. if i have:

public class List<A> { }
public class List<A, B> { }
public class List<A, B, C> { }

Then i would have three options in the list once i typed "List<". I could press the down arrow and scroll between List<A>, LIst<A, B> and List<A, B, C>.
Comment 4 Alan McGovern 2012-02-09 10:41:39 UTC
This is exactly the behaviour that MonoDevelop has so this is a regression as opposed to an enhancement request. Here is a screencast comparing to tip of newresolver from 60 seconds ago:

Comment 5 Mike Krüger 2012-02-10 05:35:40 UTC
the screencast is unrelated to the last bug.

You can scroll between that already - but not in base class context (as shown in the vid) - local variable declaration works. I put this on enh because not all template types should be shown in the completion list.
Comment 6 Mike Krüger 2012-02-10 06:14:21 UTC
I opened a mcs bug about it - there is the type expression missing in the AST.

*** This bug has been marked as a duplicate of bug 3356 ***