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>2005-07-11 20:09:17 +0400
committerMartin Baulig <martin@novell.com>2005-07-11 20:09:17 +0400
commite92eadcbe21f72392ad6d379347d978f03dbf9ed (patch)
tree3697687235f5c1539ad3137efd56981382e3568d /mcs/tests/gtest-189.cs
parentb375c34ea60310e1cd3d92f2ef268aabcbca476d (diff)
New test.
svn path=/trunk/mcs/; revision=47179
Diffstat (limited to 'mcs/tests/gtest-189.cs')
-rw-r--r--mcs/tests/gtest-189.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/tests/gtest-189.cs b/mcs/tests/gtest-189.cs
new file mode 100644
index 00000000000..05d0019a3f1
--- /dev/null
+++ b/mcs/tests/gtest-189.cs
@@ -0,0 +1,19 @@
+interface IFoo {}
+class Bar : IFoo {}
+
+class Cont<T> {
+ T f;
+ public Cont(T x) { f = x; }
+ public override string ToString ()
+ {
+ return f.ToString ();
+ }
+}
+
+class M {
+ public static void Main ()
+ {
+ Cont<IFoo> c = new Cont<IFoo> (new Bar ());
+ System.Console.WriteLine (c);
+ }
+}