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:
authorC.J. Adams-Collier <cjac@colliertech.org>2008-05-08 00:07:13 +0400
committerC.J. Adams-Collier <cjac@colliertech.org>2008-05-08 00:07:13 +0400
commit7ee3c4413c79bc123ab2e2c2bcec54138c7ec394 (patch)
treea7ed85bfab3fc0d0c3a1917ca6439e72effff301 /mcs/tests/gtest-395.cs
parentd2aab8126cadc9bf10eddec57c2c944343521eaa (diff)
2008-05-06T1808 C.J. Adams-Collier <cjac@colliertech.org>
* known-issues-gmcs: added entry for gtest-395.cs * known-issues-smcs: added entry for gtest-395.cs * gtest-395.cs: added test from https://bugzilla.novell.com/show_bug.cgi?id=387040 svn path=/trunk/mcs/; revision=102770
Diffstat (limited to 'mcs/tests/gtest-395.cs')
-rw-r--r--mcs/tests/gtest-395.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/gtest-395.cs b/mcs/tests/gtest-395.cs
new file mode 100644
index 00000000000..29a061018f9
--- /dev/null
+++ b/mcs/tests/gtest-395.cs
@@ -0,0 +1,17 @@
+public class RuleBuilder<T> where T : class {}
+
+public interface IDynamicObject {
+ RuleBuilder<T> GetRule<T>() where T : class;
+}
+
+public class RubyMethod : IDynamicObject {
+ RuleBuilder<T> IDynamicObject.GetRule<T>() /* where T : class */ {
+ return new RuleBuilder<T>();
+ }
+}
+
+public class T {
+ static void Main ()
+ {
+ }
+}