Bug 4524 - gmcs does not handle extension methods and protected methods with the same name
Summary: gmcs does not handle extension methods and protected methods with the same name
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2012-04-19 13:07 UTC by Bill Holmes
Modified: 2012-04-20 04:46 UTC (History)
1 user (show)

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

File to reproduce (416 bytes, text/plain)
2012-04-19 13:07 UTC, Bill Holmes

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 GitHub or Developer Community 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 Bill Holmes 2012-04-19 13:07:45 UTC
Created attachment 1704 [details]
File to reproduce

Compile the attached sample with gmcs

example.cs(21,17): error CS1540: Cannot access protected member `AdapterType.DoSomething()' via a qualifier of type `AdapterType'. The qualifier must be of type `Dummy' or derived from it

This code compiles fine with csc
Comment 1 Marek Safar 2012-04-20 04:46:29 UTC
Already fixed in master