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-01-22 13:11:58 +0300
committerMarek Safar <marek.safar@gmail.com>2008-01-22 13:11:58 +0300
commit26e8401ea527b01bccbc0270e01a512e2a8b12b8 (patch)
tree568176ed067448c6ea8644bb557c01b37f86a7a0 /mcs/tests/gtest-exmethod-16.cs
parent98faee3950a9258bfa5378904f7c5f27911fa5f2 (diff)
2008-01-22 Marek Safar <marek.safar@gmail.com>
A test for bug #355161 svn path=/trunk/mcs/; revision=93496
Diffstat (limited to 'mcs/tests/gtest-exmethod-16.cs')
-rw-r--r--mcs/tests/gtest-exmethod-16.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/mcs/tests/gtest-exmethod-16.cs b/mcs/tests/gtest-exmethod-16.cs
new file mode 100644
index 00000000000..1f07db46b72
--- /dev/null
+++ b/mcs/tests/gtest-exmethod-16.cs
@@ -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