Bug 15369 - Different compiler error for missing implementation in class Foo derived from abstract class Bar
Summary: Different compiler error for missing implementation in class Foo derived from...
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: 3.2.x
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2013-10-12 07:19 UTC by Andres G. Aragoneses
Modified: 2013-10-29 10:16 UTC (History)
1 user (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 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 Andres G. Aragoneses 2013-10-12 07:19:16 UTC
using System;

namespace TestProject
	public class SomeProperty

	public abstract class SomeAbstract : ISomeProp
		public abstract SomeProperty SomeProperty { get; }

	interface ISomeProp
		SomeProperty SomeProperty { get; }

	public class Foo : SomeAbstract
		private static SomeProperty someProperty;
		public static SomeProperty SomeProperty { get { return someProperty; } }
		SomeProperty ISomeProp.SomeProperty { get { return Foo.SomeProperty; } }


.NET results: 2 compiler errors

Error	1	'TestProject.Foo' does not implement inherited abstract member 'TestProject.SomeAbstract.SomeProperty.get'	c:\users\knocte\documents\visual studio 2012\Projects\TestingDefaultParams\TestingDefaultParams\Abstract.cs	19	15	TestingDefaultParams

Error	3	'TestProject.Foo.ISomeProp.SomeProperty': containing type does not implement interface 'TestProject.ISomeProp'	c:\users\knocte\documents\visual studio 2012\Projects\TestingDefaultParams\TestingDefaultParams\Abstract.cs	23	16	TestingDefaultParams

Mono result: 1 compiler error, 1 warning: 
/home/knocte/Documents/Code/testsol/TestProject/MyClass.cs(30,30): Warning CS0114: `TestProject.Foo.SomeProperty' hides inherited member `TestProject.SomeAbstract.SomeProperty'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword (CS0114) (TestProject)
/home/knocte/Documents/Code/testsol/TestProject/MyClass.cs(30,30): Error CS0533: `TestProject.Foo.SomeProperty' hides inherited abstract member `TestProject.SomeAbstract.SomeProperty' (CS0533) (TestProject)
Comment 1 Marek Safar 2013-10-29 10:16:59 UTC
Fixed in master