Bug 1489 - Going to definition on the new expression goes to definition of the class not the constructor
Summary: Going to definition on the new expression goes to definition of the class not...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 2.8
Hardware: PC Linux
: Low enhancement
Target Milestone: master
Assignee: Mike Krüger
Depends on:
Reported: 2011-10-13 21:45 UTC by Chris Hardy [MSFT]
Modified: 2015-08-20 03:24 UTC (History)
3 users (show)

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 Chris Hardy [MSFT] 2011-10-13 21:45:25 UTC
When one try to go to the definition (F12) on the new expression, it goes to the definition of the class. One would rather expect that it will go to the definition of called constructor.
Comment 2 Alan McGovern 2011-11-15 11:24:29 UTC
The issue is code like this:

MainClass x= new MainClass ();

Right clicking on the 'MainClass' in 'new MainClass ()' should jump to the constructor. Right clicking on 'MainClass' in 'MainClass x =' should jump to the type.
Comment 3 Mike Krüger 2011-12-07 05:51:45 UTC
Fixed (newresolver branch) - very good finding btw.