Merge pull request #4327 from vkargov/vk-abcremedy
[mono.git] / mcs / tests / gtest-exmethod-37.cs
1 using System;
2
3 static class S
4 {
5         public static void Extension (this A b, string s, bool n)
6         {
7                 throw new ApplicationException ("wrong overload");
8         }
9 }
10
11 class A
12 {
13         public void Extension (string s)
14         {
15         }
16 }
17
18 class Test
19 {
20         static void TestMethod (Action<bool> arg)
21         {
22         }
23
24         static int TestMethod (Action<string> arg)
25         {
26                 arg ("hola");
27                 return 2;
28         }
29
30         public static int Main ()
31         {
32                 var a = new A ();
33                 if (TestMethod (a.Extension) != 2)
34                         return 1;
35
36                 return 0;
37         }
38 }