[Mono-bugs] [Bug 82111][Nor] Changed - mcs/gmcs fails to throw errors CS053/CS054 when abstract child of abstract class hides abstract members improperly
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jul 17 15:25:44 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sanfordarmstrong at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=82111
--- shadow/82111 2007-07-17 14:56:31.000000000 -0400
+++ shadow/82111.tmp.22101 2007-07-17 15:25:44.000000000 -0400
@@ -208,6 +208,24 @@
exception:
Unhandled Exception: System.TypeLoadException: Method 'Initialize' in
type 'MyConcrete' from assembly 'test, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null' does not have an implementation.
+
+------- Additional Comments From sanfordarmstrong at gmail.com 2007-07-17 15:25 -------
+Not throwing CS0533 is a regression since 1.2.0. Here is the
+compilation output using mcs 1.2.0. gmcs 1.2.0 produces identical
+output. Notice that CS0534 is still not caught here.
+
+X:\sandbox\AbstractTest\AbstractTest>c:\mono-1.2\bin\mcs Program.cs
+Program.cs(10,29): warning CS0114:
+`AbstractTest.MyAbstract.Initialize()' hides inherited member
+`AbstractTest.MyAbstractBase.Initialize()'. To make the current member
+override that implementation, add the override keyword. Otherwise add
+the new keyword
+Program.cs(5,30): (Location of the symbol related to previous warning)
+Program.cs(10,29): error CS0533:
+`AbstractTest.MyAbstract.Initialize()' hides inherited abstract member
+`AbstractTest.MyAbstractBase.Initialize()'
+Program.cs(5,30): (Location of the symbol related to previous error)
+Compilation failed: 1 error(s), 1 warnings
More information about the mono-bugs
mailing list