Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-primary-ctor-09.cs
1 // Compiler options: -langversion:experimental
2 using System;
3
4 class A (Func<int, int> barg)
5 {
6         public Func<int, int> BaseArg = barg;
7 }
8
9 partial class PC
10 {
11         public Func<int, int> f1 = (a) => arg;
12 }
13
14 partial class PC (int arg) 
15         : A ((a) => arg)
16 {
17 }
18
19 class X
20 {
21         public static int Main ()
22         {
23                 if (new PC (3).f1 (4) != 3)
24                         return 1;
25
26                 if (new PC (3).BaseArg (4) != 3)
27                         return 2;
28
29                 return 0;
30         }
31 }