[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-326.cs
blob31220ac9856c857fd4652749fa71e5470b7f316d
1 // Compiler options: -langversion:default
2 // Anonymous method fix, implicit conversion inside an old-style constructor
3 // Bug 70150
4 using System;
5 public delegate double Mapper (int item);
7 class X
9 public static int Main ()
11 Mapper mapper = new Mapper (delegate (int i){
12 return i * 12; });
14 if (mapper (3) == 36)
15 return 0;
17 // Failure
18 return 1;