Author: marek
Date: 2007-12-22 14:32:50 -0500 (Sat, 22 Dec 2007)
New Revision: 91812
Added:
trunk/mcs/tests/gtest-exmethod-15.cs
Log:
New test.
Added: trunk/mcs/tests/gtest-exmethod-15.cs
===================================================================
--- trunk/mcs/tests/gtest-exmethod-15.cs 2007-12-22 19:32:22 UTC (rev
91811)
+++ trunk/mcs/tests/gtest-exmethod-15.cs 2007-12-22 19:32:50 UTC (rev
91812)
@@ -0,0 +1,30 @@
+// Compiler options: -langversion:linq
+
+using System;
+using System.Reflection;
+
+public interface IA
+{
+ void Foo (IA self);
+}
+
+public static class C
+{
+ public static TAttribute GetCustomAttribute<TAttribute> (this
ICustomAttributeProvider self)
+ {
+ var attributes = self.GetCustomAttributes<TAttribute> ();
+// if (attributes == null || attributes.Length == 0)
+// return null;
+
+ return attributes [0];
+ }
+
+ public static TAttribute [] GetCustomAttributes<TAttribute> (this
ICustomAttributeProvider self)
+ {
+ return null;
+ }
+
+ public static void Main ()
+ {
+ }
+}
Property changes on: trunk/mcs/tests/gtest-exmethod-15.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches