Author: marek
Date: 2008-02-08 08:53:06 -0500 (Fri, 08 Feb 2008)
New Revision: 95246

Added:
   trunk/mcs/tests/gtest-exmethod-18.cs
Log:
2008-02-08  Marek Safar  <[EMAIL PROTECTED]>

        A test for bug #359749
        


Added: trunk/mcs/tests/gtest-exmethod-18.cs
===================================================================
--- trunk/mcs/tests/gtest-exmethod-18.cs        2008-02-08 13:52:42 UTC (rev 
95245)
+++ trunk/mcs/tests/gtest-exmethod-18.cs        2008-02-08 13:53:06 UTC (rev 
95246)
@@ -0,0 +1,24 @@
+using System;
+
+class Foo {
+       public bool IsBar {
+               get { return false; }
+       }
+}
+
+static class FooExt {
+
+       public static bool IsBar (this Foo f)
+       {
+               return f.IsBar;
+       }
+}
+
+class Repro {
+
+       static void Main ()
+       {
+               var f = new Foo ();
+               Console.WriteLine (f.IsBar ());
+       }
+}


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

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

Reply via email to