[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-487.cs
blob1d37d5e97d0414140d25ce3365fb989b581843dc
1 using System;
2 struct X {
3 int i;
4 static bool pass = false;
6 X (object dummy)
8 X x = new X ();
9 x.i = 1;
10 int n = 0;
12 if ((this = x).i == 1)
13 n ++;
15 if (this.i == 1)
16 n ++;
18 pass = (n == 2);
20 public static int Main ()
22 new X (null);
23 return pass ? 0 : 1;