Author: marek
Date: 2008-01-22 05:11:58 -0500 (Tue, 22 Jan 2008)
New Revision: 93496

Added:
   trunk/mcs/tests/gtest-exmethod-16.cs
Log:
2008-01-22  Marek Safar  <[EMAIL PROTECTED]>

        A test for bug #355161
 


Added: trunk/mcs/tests/gtest-exmethod-16.cs
===================================================================
--- trunk/mcs/tests/gtest-exmethod-16.cs        2008-01-22 10:11:24 UTC (rev 
93495)
+++ trunk/mcs/tests/gtest-exmethod-16.cs        2008-01-22 10:11:58 UTC (rev 
93496)
@@ -0,0 +1,37 @@
+using System;
+
+static class Rocks
+{
+       public static bool Extension (this string self)
+       {
+               return true;
+       }
+       
+       public static bool Extension (this D self)
+       {
+               return true;
+       }
+}
+
+delegate string D ();
+
+class Program
+{
+       event D e;
+       
+       public string this [int index] {
+               get { return "HelloWorld"; }
+       }
+       
+       public string Property {
+               get { return "a"; }
+       }
+       
+       static void Main (string [] args)
+       {
+               Program p = new Program ();
+               p [0].Extension ();
+               p.Property.Extension ();
+               p.e.Extension ();
+       }
+}
\ No newline at end of file


Property changes on: trunk/mcs/tests/gtest-exmethod-16.cs
___________________________________________________________________
Name: svn:eol-style
   + native

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to