Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2008-05-13 12:42:50 +0400
committerMarek Safar <marek.safar@gmail.com>2008-05-13 12:42:50 +0400
commit03abba5dbfdd8d46a86e4dcf6bfd4e47d0dc0d99 (patch)
tree8bfa9c8deeb6051398812156cb3fb790f630d783 /mcs/tests/gtest-exmethod-20.cs
parent0b53ec52aa2d4e3ac5563d88b5647dfc26ed9c35 (diff)
New tests.
svn path=/trunk/mcs/; revision=103064
Diffstat (limited to 'mcs/tests/gtest-exmethod-20.cs')
-rwxr-xr-xmcs/tests/gtest-exmethod-20.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/gtest-exmethod-20.cs b/mcs/tests/gtest-exmethod-20.cs
new file mode 100755
index 00000000000..6a26af3c701
--- /dev/null
+++ b/mcs/tests/gtest-exmethod-20.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+
+interface I
+{
+}
+
+namespace Outer.Inner
+{
+ class Test {
+ static void M (I list)
+ {
+ list.AddRange(new Test[0]);
+ }
+
+ static void Main()
+ {
+ }
+ }
+}
+
+namespace Outer {
+ static class ExtensionMethods {
+ public static void AddRange<T>(this I list, IEnumerable<T> items)
+ {
+ }
+ }
+}