[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-exmethod-37.cs
blob37241a07ce6d63d2ef2c92c7e2a2ecacb6b37815
1 using System;
3 static class S
5 public static void Extension (this A b, string s, bool n)
7 throw new ApplicationException ("wrong overload");
11 class A
13 public void Extension (string s)
18 class Test
20 static void TestMethod (Action<bool> arg)
24 static int TestMethod (Action<string> arg)
26 arg ("hola");
27 return 2;
30 public static int Main ()
32 var a = new A ();
33 if (TestMethod (a.Extension) != 2)
34 return 1;
36 return 0;