[Mono-bugs] [Bug 29911][Min] New - mcs does not handle alternate syntax for attribtutes

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
5 Sep 2002 02:16:09 -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 gonzalo@ximian.com.

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

--- shadow/29911	Wed Sep  4 22:16:09 2002
+++ shadow/29911.tmp.8239	Wed Sep  4 22:16:09 2002
@@ -0,0 +1,39 @@
+Bug#: 29911
+Product: Mono/MCS
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not handle alternate syntax for attribtutes
+
+Steps to reproduce the problem:
+1. Try compiling this:
+
+using System.Xml.Serialization;
+public class SerializableClass
+{
+    [XmlAttribute(Type=typeof(MyEntry) )]
+    public Entry myEntry;
+}
+
+public class Entry{}
+public class MyEntry : Entry{}
+
+Actual Results:
+xmltest.cs(4) error CS0182: An attribute argument must be a constant
+expression, typeof expression or array cr
+eation expression
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+Compilation successful.