--- /dev/null
--- /dev/null
++// cs0109-8.cs: The member `DerivedClass.get_Value()' does not hide an inherited member. The new keyword is not required
++// Line: 14
++// Compiler options: -warnaserror -warn:4
++
++class BaseClass {
++ protected virtual int Value {
++ get {
++ return 0;
++ }
++ set { }
++ }
++}
++
++abstract class DerivedClass: BaseClass {
++ protected new int get_Value () {
++ return 1;
++ }
++}
++
++
++class ErrorClass: DerivedClass {
++ protected override int Value {
++ get {
++ return 0;
++ }
++ set { }
++ }
++
++ static void Main () {}
++}
++
+++ /dev/null
--// cs0560.cs: Accessor 'ErrorClass.Value.get' : cannot override 'BaseClass.Value.get' because it is hidden by 'DerivedClass.get_Value()'
--// Line: 22
--
--class BaseClass {
-- protected virtual int Value {
-- get {
-- return 0;
-- }
-- set { }
-- }
--}
--
--abstract class DerivedClass: BaseClass {
-- protected new int get_Value () {
-- return 1;
-- }
--}
--
--
--class ErrorClass: DerivedClass {
-- protected override int Value {
-- get {
-- return 0;
-- }
-- set { }
-- }
--
-- static void Main () {}
--}
--
cs0547.cs
cs0548-4.cs
cs0548.cs
--cs0560.cs
cs0567.cs
cs0612-2.cs NO ERROR
cs0619-42.cs
cs0547.cs
cs0548-4.cs
cs0548.cs
--cs0560.cs
cs0567.cs
cs0612-2.cs NO ERROR
cs0619-42.cs
++2006-04-28 Marek Safar <marek.safar@seznam.cz>
++
++ A fix for #78049
++ *class.cs (Method.FindOutBaseMethod): Base method cannot be property method.
++
+2006-04-28 Raja R Harinath <harinath@gmail.com>
+
+ * flowanalysis.cs (FlowBranching.MergeTopBlock): Don't create a
+ dummy UsageVector.
+
+ * flowanalysis.cs (UsageVector.MergeChild): Change FlowBranching
+ argument to two arguments: an usage-vector and a bool. Move call
+ to FlowBranching.Merge () ...
+ (FlowBranching.MergeChild, FlowBranching.MergeTopBlock): ... here.
+
+ * flowanalysis.cs (UsageVector.MergeChild): Move special-case
+ handling of loop and switch reachability to ...
+ (FlowBranchingLoop.Merge, FlowBranchingSwitch.Merge): ... these.
+
+2006-04-27 Raja R Harinath <harinath@gmail.com>
+
+ * flowanalysis.cs (FlowBranching.InLoop): Move special-case
+ handling to FlowBranchingLoop.InLoop.
+ (FlowBranching.InSwitch): Likewise, to FlowBranchingSwitch.
+
+2006-04-26 Marek Safar <marek.safar@seznam.cz>
+
+ A fix for #78115
+ anonymous.cs.cs (AnonymousMethod.DoResolve): Moved the check whether
+ anonymous method is allowed from AnonymousContainer here.
+
+ * attribute.cs, codegen.cs (EmitContext): Add IsAnonymousMethodAllowed.
+
2006-04-24 Raja R Harinath <rharinath@novell.com>
Fix #78156
if (mi == null)
return null;
++ if (mi.IsSpecialName)
++ return null;
++
base_ret_type = mi.ReturnType;
return mi;
}
++2006-04-28 Marek Safar <marek.safar@seznam.cz>
++
++ A fix for #78049
++ *class.cs (Method.FindOutBaseMethod): Base method cannot be property method.
++
+2006-04-28 Raja R Harinath <harinath@gmail.com>
+
+ * flowanalysis.cs (FlowBranching.MergeTopBlock): Don't create a
+ dummy UsageVector.
+
+ * flowanalysis.cs (UsageVector.MergeChild): Change FlowBranching
+ argument to two arguments: an usage-vector and a bool. Move call
+ to FlowBranching.Merge () ...
+ (FlowBranching.MergeChild, FlowBranching.MergeTopBlock): ... here.
+
+ * flowanalysis.cs (UsageVector.MergeChild): Move special-case
+ handling of loop and switch reachability to ...
+ (FlowBranchingLoop.Merge, FlowBranchingSwitch.Merge): ... these.
+
+2006-04-27 Raja R Harinath <harinath@gmail.com>
+
+ * flowanalysis.cs (FlowBranching.InLoop): Move special-case
+ handling to FlowBranchingLoop.InLoop.
+ (FlowBranching.InSwitch): Likewise, to FlowBranchingSwitch.
+
+2006-04-26 Marek Safar <marek.safar@seznam.cz>
+
+ A fix for #78115
+ anonymous.cs.cs (AnonymousMethod.DoResolve): Moved the check whether
+ anonymous method is allowed from AnonymousContainer here.
+
+ * attribute.cs, codegen.cs (EmitContext): Add IsAnonymousMethodAllowed.
+
2006-04-24 Raja R Harinath <rharinath@novell.com>
Fix #78156
if (mi == null)
return null;
++ if (mi.IsSpecialName)
++ return null;
++
base_ret_type = mi.ReturnType;
return mi;
}
--- /dev/null
--- /dev/null
++class Base\r
++{\r
++ public int Property { get { return 42; } }\r
++ static void Main () {}\r
++}\r
++\r
++class Derived : Base\r
++{\r
++ public int get_Property() { return 42; }\r
++}