[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / gtest-612.cs
blobdac47d12e3fb0702145c06abf48654d9ea7f60b4
1 using System;
3 class MainClass
5 static byte count;
7 public static int Main ()
9 var x = Left () ?? Right();
10 if (count != 1)
11 return 1;
13 switch (Left ()) {
14 case 0:
15 return 2;
18 if (count != 2)
19 return 3;
21 Console.WriteLine ("ok");
22 return 0;
25 static int? Left()
27 return ++count;
30 static int? Right ()
32 return 0;