[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / tests / test-925.cs
1 using System;
2 using System.Linq;
3 using System.Reflection;
4
5 class Program
6 {
7         public static int Main ()
8         {
9                 var setter = typeof (MyClass).GetMember("set_Item")[0] as MethodInfo;
10                 var sp = setter.GetParameters ();
11                 var first = sp [0].GetCustomAttributes ();
12                 var value = sp [2].GetCustomAttributes ();
13
14                 if (first.Count () != 0)
15                         return 1;
16
17                 if (value.Count () != 1)
18                         return 2;
19                         
20                 return 0;
21         }
22 }
23
24 [AttributeUsage(AttributeTargets.All)]
25 public class MyAttribute2Attribute : Attribute
26 {
27 }
28
29 public class MyClass
30 {
31         public string this[int index1, int index2]
32         {
33                 get
34                 {
35                         return "";
36                 }
37
38                 [param: MyAttribute2]
39                 set
40                 {
41                 }
42         }
43 }