[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-lambda-35.cs
blob4cfd316d42c990fe8d2dc22fa640e1441bec5a1f
1 using System;
3 class C
5 static int Foo (Func<short> b)
7 return 1;
10 static int Foo (Func<int> a)
12 return 2;
15 static int Main()
17 if (Foo (() => 1) != 2)
18 return 1;
20 if (Foo (() => (short) 1) != 1)
21 return 2;
23 if (Foo (() => (byte) 1) != 1)
24 return 3;
26 Console.WriteLine ("ok");
27 return 0;