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:
authorMartin Baulig <martin@novell.com>2006-02-10 13:19:57 +0300
committerMartin Baulig <martin@novell.com>2006-02-10 13:19:57 +0300
commit400f72e13dfc744e8574ad1c155521709b5ddf7b (patch)
tree4008e6ca1fd02b040545f5fac4fcae66db8f6112 /mcs/tests/gtest-246.cs
parent5b0a22a7832ec586c97ee85cca94f0ca570c22d6 (diff)
New tests.
svn path=/trunk/mcs/; revision=56750
Diffstat (limited to 'mcs/tests/gtest-246.cs')
-rw-r--r--mcs/tests/gtest-246.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/mcs/tests/gtest-246.cs b/mcs/tests/gtest-246.cs
new file mode 100644
index 00000000000..1e7ca4bd69e
--- /dev/null
+++ b/mcs/tests/gtest-246.cs
@@ -0,0 +1,31 @@
+using System;
+
+namespace TestCase
+{
+ interface ITest
+ {
+ }
+
+ class CTest : ITest
+ {
+ static void Main()
+ {
+ }
+
+ public void Bar()
+ {
+ }
+ }
+
+ class CGenericTest<T,V>
+ where T : ITest
+ where V : CTest, T, new()
+ {
+ public V Foo()
+ {
+ V TestObject = new V();
+ TestObject.Bar();
+ return TestObject;
+ }
+ }
+}