diff options
author | Martin Baulig <martin@novell.com> | 2005-07-11 20:09:17 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2005-07-11 20:09:17 +0400 |
commit | e92eadcbe21f72392ad6d379347d978f03dbf9ed (patch) | |
tree | 3697687235f5c1539ad3137efd56981382e3568d /mcs/tests/gtest-189.cs | |
parent | b375c34ea60310e1cd3d92f2ef268aabcbca476d (diff) |
New test.
svn path=/trunk/mcs/; revision=47179
Diffstat (limited to 'mcs/tests/gtest-189.cs')
-rw-r--r-- | mcs/tests/gtest-189.cs | 19 |
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); + } +} |