Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-385.cs
1 using System;
2 using System.Reflection;
3
4 [AttributeUsage (AttributeTargets.All)]
5 public class DocAttribute : Attribute
6 {
7         public DocAttribute () {}
8         public DocAttribute (string s) {}
9 }
10
11 public delegate void Func<[Doc] TArg, [Doc ("ret!")] TRet> ();
12
13 class Test
14 {
15         public static int Main ()
16         {
17                 Type[] targs = typeof (Func<,>).GetGenericArguments ();
18                 if (targs[0].GetCustomAttributes (false).Length != 1)
19                         return 1;
20                 
21                 if (targs[1].GetCustomAttributes (false).Length != 1)
22                         return 2;
23                 
24                 Console.WriteLine ("OK");
25                 return 0;
26         }
27 }
28