Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-exmethod-16.cs
1 using System;
2
3 static class Rocks
4 {
5         public static bool Extension (this string self)
6         {
7                 return true;
8         }
9         
10         public static bool Extension (this D self)
11         {
12                 return true;
13         }
14 }
15
16 delegate string D ();
17
18 class Program
19 {
20         event D e;
21         
22         public string this [int index] {
23                 get { return "HelloWorld"; }
24         }
25         
26         public string Property {
27                 get { return "a"; }
28         }
29         
30         public static void Main (string [] args)
31         {
32                 Program p = new Program ();
33                 p [0].Extension ();
34                 p.Property.Extension ();
35                 p.e.Extension ();
36         }
37 }