Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / test-388.cs
1 // This is used to debug an ordering dependent bug.
2 //
3 // Compiler options: support-388.cs -out:test-388.exe
4
5 namespace Schemas {
6     [System.Xml.Serialization.XmlType("base-field-type"),
7     System.Xml.Serialization.XmlInclude(typeof(compoundfield)),
8     System.Xml.Serialization.XmlInclude(typeof(fieldtype))]
9     public partial class basefieldtype {
10
11         [System.Xml.Serialization.XmlAttribute(DataType="ID")]
12         public string id;
13
14         [System.Xml.Serialization.XmlAttribute()]
15         public string datatype;
16     }
17
18     [System.Xml.Serialization.XmlType("field-type")]
19     public partial class fieldtype: basefieldtype {}
20
21     [System.Xml.Serialization.XmlType("compound-field")]
22     public partial class compoundfield: basefieldtype {}
23
24     public partial class field {
25
26         [System.Xml.Serialization.XmlAttribute()]
27         public string id;
28
29         [System.Xml.Serialization.XmlAttribute()]
30         public string type;
31     }
32
33     [System.Xml.Serialization.XmlType("form-data")]
34     public partial class formdata {
35
36         [System.Xml.Serialization.XmlArray(ElementName="form-fields"),
37         System.Xml.Serialization.XmlArrayItem(Type=typeof(field),IsNullable=false)]
38         public field[] formfields;
39         
40                 [System.Xml.Serialization.XmlElement("field-type",Type=typeof(fieldtype)),
41         System.Xml.Serialization.XmlElement("compound-field",Type=typeof(compoundfield))]
42         public basefieldtype[] Items;
43     }
44
45     public class M {
46         public static void Main () {}
47     }
48 }