[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / tests / test-458.cs
1 // test-458.cs : for bug #75723
2 using System;
3
4
5 // The attribute
6 internal class MyAttr : Attribute {
7   internal MyAttr() { }
8   internal MyAttr(Type type) { }
9   internal MyAttr(string name) { }
10   internal MyAttr(int i) { }
11 }
12
13 // The Classes
14 [MyAttr()]
15 internal class ClassA  { }
16
17 [MyAttr(typeof(string))]
18 internal class ClassB  { }
19
20 [MyAttr("abc")]
21 internal class ClassC  { }
22
23 [MyAttr(3)]
24 internal class ClassD  { }
25
26 internal class Top
27
28   public static int Main ()
29   {
30         if (typeof (ClassA).GetCustomAttributes (false).Length != 1)
31                 return 1;
32                 
33         return 0;
34   }
35 }