[Mono-bugs] [Bug 24474] New - Applying a named property argument crashes.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
10 May 2002 02:17:31 -0000


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 miguel@ximian.com.

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

--- shadow/24474	Thu May  9 22:17:31 2002
+++ shadow/24474.tmp.32450	Thu May  9 22:17:31 2002
@@ -0,0 +1,41 @@
+Bug#: 24474
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Misc
+AssignedTo: ravi@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Applying a named property argument crashes.
+
+The following code crashes MCS:
+
+using System;
+
+[AttributeUsage(AttributeTargets.Class)]
+public sealed class BarAttribute : System.Attribute
+{
+ public BarAttribute() {}
+ public int foo;
+
+ public int Foo {
+   get { return foo; }
+   set { foo = value; }
+ }
+}
+
+[Bar(Foo=2)]
+public class Zippy {
+}
+
+class X {
+        static void Main () {}
+}