[Mono-bugs] [Bug 52793][Nor] New - CSharpCodeGenerator generates improper code for static properties

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 12 Jan 2004 14:56:53 -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 jaak@zd.com.pl.

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

--- shadow/52793	2004-01-12 14:56:52.000000000 -0500
+++ shadow/52793.tmp.25318	2004-01-12 14:56:52.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 52793
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Fedora 1.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jaak@zd.com.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CSharpCodeGenerator generates improper code for static properties
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+
+Description of Problem:
+
+CSharpCodeGenerator generates improper code for static properties.
+
+Steps to reproduce the problem:
+
+Try to generate C# code from:
+
+---------
+new CodePropertyReferenceExpression(null, "propertyname")
+---------
+
+Actual Results
+
+---------
+.propertyname
+---------
+
+Expected Results:
+
+---------
+propertyname (this is what MS does)
+---------
+
+How often does this happen? 
+
+100%
+
+Additional Information:
+
+Patch included. This implements exactly the same behaviour as 
+CodeFieldReferenceExpression