update readme (#21797)
[mono-project.git] / mcs / tests / test-primary-ctor-02.cs
blobd22b3220691e8220b0374dfea0774fbfc66cbd5c
1 // Compiler options: -langversion:experimental
2 using System;
4 partial class Part
6 public Part (string s)
7 : this (5)
12 partial class Part(int arg)
14 static int field = 7;
16 int Property { get; } = arg + field;
19 if (arg != 5)
20 throw new ApplicationException ("1");
22 if (Property != 12)
23 throw new ApplicationException ("2");
26 public static int Main ()
28 var p = new Part ("5");
29 if (p.Property != 12)
30 return 1;
32 return 0;