Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / errors / cs0122-33.cs
1 // CS0122: `M.Test<S.P>(I<S.P>)' is inaccessible due to its protection level
2 // Line: 27
3
4 interface I<T>
5 {
6 }
7
8 struct S
9 {
10         class P
11         {
12         }
13         
14         public class C : I<P>
15         {
16         }
17 }
18
19 class M
20 {
21         static void Test<T>(I<T> iface)
22         {
23         }
24
25         static void Test()
26         {
27                 Test (new S.C ());
28         }
29 }