dlr bug
[mcs.git] / tests / test-partial-26.cs
blob574e456154ef9991ce8ee2316271e0a7d963914f
1 using System;
3 namespace ConsoleApplication1
5 public partial class X
7 [CLSCompliant (true)]
8 partial void Foo ();
11 public partial class X
13 partial void Foo ()
15 int i;
19 public partial class Y
21 partial void Foo ()
23 int i;
27 public partial class Y
29 [CLSCompliant (true)]
30 partial void Foo ();
33 class Program
35 static int Main ()
37 var x = typeof (X).GetMethod ("Foo", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetCustomAttributes (true);
38 Console.WriteLine (x.Length);
39 if (x.Length != 1)
40 return 1;
42 x = typeof (Y).GetMethod ("Foo", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetCustomAttributes (true);
43 Console.WriteLine (x.Length);
44 if (x.Length != 1)
45 return 2;
47 return 0;