[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-primary-ctor-09.cs
blobd9b1bbf4b808a7deaf7a12116196b9c023d4804c
1 // Compiler options: -langversion:experimental
2 using System;
4 class A (Func<int, int> barg)
6 public Func<int, int> BaseArg = barg;
9 partial class PC
11 public Func<int, int> f1 = (a) => arg;
14 partial class PC (int arg)
15 : A ((a) => arg)
19 class X
21 public static int Main ()
23 if (new PC (3).f1 (4) != 3)
24 return 1;
26 if (new PC (3).BaseArg (4) != 3)
27 return 2;
29 return 0;