Updated with review feedback.
[mono.git] / mcs / tests / gtest-exmethod-29.cs
1 using System;
2
3 public class My
4 {
5         bool ContentTransferEncoding {
6                 set { }
7         }
8 }
9
10 public static class Test
11 {
12         public static int Main ()
13         {
14                 var test = new My ();
15
16                 int result = test.ContentTransferEncoding ();
17                 if (result != 1)
18                         return 1;
19
20                 result = test.ContentTransferEncoding<int> ();
21                 if (result != 2)
22                         return 2;
23
24                 return 0;
25         }
26
27         public static int ContentTransferEncoding<T> (this My email)
28         {
29                 return 2;
30         }
31
32         public static int ContentTransferEncoding (this My email)
33         {
34                 return 1;
35         }
36 }