Bug 7649 - Certain where constraints in C# generic class cause indent to be off
Summary: Certain where constraints in C# generic class cause indent to be off
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 3.0.x
Hardware: PC Mac OS
: Low normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-10-04 14:06 UTC by t9mike
Modified: 2013-09-04 07:07 UTC (History)
1 user (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 t9mike 2012-10-04 14:06:38 UTC
This causes no issues:

    public class TabBarHelper<TTab,TExtra>
        where TTab : class,new()
        where TExtra : class,new()
    {
    }

But this:

    public class TabBarHelper<TTab,TExtra>
        where TTab : struct
        where TExtra : struct
    {
    }

causes indent to be one level too deep. For example, if I hit return after opening brace above and type "void", I get:

    public class TabBarHelper<TTab,TExtra>
        where TTab : struct
        where TExtra : struct
    {
            void ...
    }

The incorrect level is consistent, so MD wants to change indent on lines as I make edits.

MonoDevelop 3.0.4.7
Runtime:
	Mono 2.10.9 (tarball)
	GTK 2.24.10
	GTK# (2.12.0.0)
	Package version: 210090011
Monotouch: 6.0.3
Mono for Android: 4.2.7
Comment 1 Mike Krüger 2013-09-04 07:07:16 UTC
fixed