[Mono-bugs] [Bug 65238][Nor] New - Missing error 0617 report

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 2 Sep 2004 16:48:50 -0400 (EDT)


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 marek.safar@seznam.cz.

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

--- shadow/65238	2004-09-02 16:48:50.000000000 -0400
+++ shadow/65238.tmp.14202	2004-09-02 16:48:50.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 65238
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: marek.safar@seznam.cz               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Missing error 0617 report
+
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. 
+
+class BazAttribute : System.Attribute 
+{
+	public object foo3 { set {} }
+};
+
+class Test 
+{
+	[Baz (foo3 = 3)] void f3() {}
+}
+
+Actual Results:
+
+No error
+
+Expected Results:
+
+test-272.cs(8,8): error CS0617: 'foo3' is not a valid named attribute argument.
+        Named attribute arguments must be fields which are not readonly, static
+        or const, or read-write properties which are not static.
+test-272.cs(3,16): (Location of symbol related to previous error)
+
+
+How often does this happen? 
+
+
+Additional Information: