Bug 338 - Monodevelop fails parse multiple attributes over a method in single line
Summary: Monodevelop fails parse multiple attributes over a method in single line
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-08-19 13:20 UTC by tomasz.kubacki
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 tomasz.kubacki 2011-08-19 13:20:07 UTC
Monodevelop fails parsing following declaration:

public class Test {
[MyAtr2,MyAtr1]  <-- this is not parsed
public void test(){			
}		
}			

public class MyAtr1 : Attribute {
}

public class MyAtr2 : Attribute {
}

the line with attributes over test method is underlined with a red line
and toolltip says: Parser Error: Internal compiler error during parsing


There is a workaround for the problem, since following declaration works perfectly well:


public class Test {
[MyAtr2]
[MyAtr1]
public void test(){			
}		
}
Comment 1 Mike Krüger 2011-09-20 04:56:28 UTC
fixed in 2.8 & master.