[Mono-bugs] [Bug 76783][Nor] New - MCS regression: parameter name
missing from metadata
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Nov 21 20:28: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 robertj at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=76783
--- shadow/76783 2005-11-21 20:28:53.000000000 -0500
+++ shadow/76783.tmp.31399 2005-11-21 20:28:53.000000000 -0500
@@ -0,0 +1,50 @@
+Bug#: 76783
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: robertj at gmx.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: MCS regression: parameter name missing from metadata
+
+With SVN HEAD (mono > 1.1.10) MCS doesn't emit the
+name of the implicit parameter of a property setter.
+
+If the following code gets compiled with csc, mcs 1.1.10,
+or gmcs HEAD the output will be 'value'.
+
+With MCS from SVN HEAD the output is empty.
+
+It's not a runtime issue, because an executable created by
+csc or gmcs outputs 'value'. It seems that the parameter
+name is missing from the metadata.
+
+
+using System;
+using System.Reflection;
+
+class Test
+{
+ public int Prop {
+ get { return prop; }
+ set { prop = value; }
+ }
+
+ int prop = 0;
+
+ static void Main()
+ {
+ MethodInfo mi = typeof (Test).GetMethod ("set_Prop");
+ foreach (ParameterInfo p in mi.GetParameters ())
+ Console.WriteLine (p.Name);
+ }
+}
More information about the mono-bugs
mailing list