In class/Microsoft.Build.Tasks:
[mcs.git] / tests / test-326.cs
blob5bb9a0f525d58976199605ec2a303509f2386dad
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 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;