[Mono-bugs] [Bug 49539][Nor] Changed - Overloading a field with a method of the same name gives a compile timeerror

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 15 Dec 2003 13:39:02 -0500 (EST)


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 bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=49539

--- shadow/49539	2003-10-10 19:09:48.000000000 -0400
+++ shadow/49539.tmp.26829	2003-12-15 13:39:02.000000000 -0500
@@ -1,24 +1,23 @@
 Bug#: 49539
-Product: Mono/MCS
+Product: Mono/Compilers
 Version: unspecified
 OS: Debian Woody
 OS Details: 
-Status: NEW   
-Resolution: 
-Severity: 
+Status: RESOLVED   
+Resolution: NOTABUG
+Severity: Unknown
 Priority: Normal
-Component: Misc
+Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: baskmau@hotmail.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: Overloading a field with a method of the same name gives a compile time
-error
+Summary: Overloading a field with a method of the same name gives a compile timeerror
 
 Description of Problem:
 
 Overloading a field with a method of the same name gives a compile time
 error -- java allows this but I am not sure if the C# language forbids it.
 
@@ -51,6 +50,18 @@
 definition for `Tool'
 Compilation failed: 1 error(s), 0 warnings
 
 Expected Results:
 
 Should this compile per spec ( sorry for RTFS )?
+
+------- Additional Comments From bmaurer@users.sf.net  2003-12-15 13:39 -------
+http://www.jaggersoft.com/csharp_standard/10.7.htm
+
+The scope of a member declared by a class-member-declaration (§17.2) 
+is the class-body in which the declaration occurs
+
+In this case the scope of the class-body OverLoad includes two items 
+of name Tool. There is not name hiding provided (the only cases of 
+that are inheritance and nesting).
+
+MCS is correct here.