[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-primary-ctor-05.cs
blobded85daa0e1755caa600c5087741e00a4fdb01e3
1 // Compiler options: -warnaserror -langversion:experimental
3 using System;
4 using System.Reflection;
6 class A : Attribute
10 [method:A]
11 class X (int value)
13 public int f = value;
15 public int P { get; } = value;
17 public static int Main ()
19 var x = typeof (X);
20 var attr = x.GetConstructors ()[0].GetCustomAttribute (typeof (A)) as A;
21 if (attr == null)
22 return 2;
24 return 0;