[Mono-bugs] [Bug 23064] New - mcs cannot compile attribute constructs with typeof() expressions
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
5 Apr 2002 09:03:52 -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 john@webmeta.com.
http://bugzilla.ximian.com/show_bug.cgi?id=23064
--- shadow/23064 Fri Apr 5 04:03:52 2002
+++ shadow/23064.tmp.11576 Fri Apr 5 04:03:52 2002
@@ -0,0 +1,37 @@
+Bug#: 23064
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: john@webmeta.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs cannot compile attribute constructs with typeof() expressions
+
+Description:
+
+mcs cannot seem to compile programs with attributes containing typeof()
+expressions. The System.Xml.Schema namespace uses this functionality
+quite a bit, so for now I've excluded the System.Xml.Serialization
+namespace from the build to avoid compilation failure.
+
+Example:
+
+ [XmlArrayItem(typeof(Byte))]
+ public Byte[] Bytes;
+
+Produces:
+
+$ mcs hello.cs
+.\hello.cs(30) error CS0182: An attribute argument must be a constant
+expression
+, typeof expression or array creation expression
+Error: Compilation failed