Merge pull request #4431 from vkargov/vk-leaking-points
[mono.git] / mcs / tests / gtest-408.cs
1 using System;
2 using System.Runtime.InteropServices;
3
4 public class Test
5 {
6         public static int Main ()
7         {
8                 object [] o = typeof (IFoo).GetMethod ("get_Item").GetParameters () [0].GetCustomAttributes (false);
9                 if (o.Length != 1)
10                         return 1;
11
12                 o = typeof (IFoo).GetMethod ("set_Item").GetParameters () [0].GetCustomAttributes (false);
13                 if (o.Length != 1)
14                         return 2;
15
16                 return 0;
17         }
18
19         public interface IFoo
20         {
21                 int this [[MarshalAs (UnmanagedType.Struct)]object vt0BasedIdxOrId] { get; set; }
22         }
23 }