[Mono-bugs] [Bug 77041][Nor] New - Static and non static properties

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Dec 19 18:15:53 EST 2005

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 mono at evain.net.


--- shadow/77041	2005-12-19 18:15:53.000000000 -0500
+++ shadow/77041.tmp.25360	2005-12-19 18:15:53.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 77041
+Product: Mono: Compilers
+Version: 1.0
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: mono at evain.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Static and non static properties
+mcs emits the same propertyinfo for static and non static properties.
+class Test {
+	public static string A {
+		get { return ""; }
+	}
+	public string B {
+		get { return ""; }
+	}
+For this code, mcs emits the same property signature.
+The first one should have it's hasThis bit set to one in the CallingConvention.
+Additional Information:
+The problem is that there is no way in the current S.R.E API to define whether an PropertyBuilder 
+is an instance property or a class one. This leads to bugs like #77040.

More information about the mono-bugs mailing list