Author: martin
Date: 2005-08-03 11:42:18 -0400 (Wed, 03 Aug 2005)
New Revision: 47965
Added:
trunk/mcs/tests/gtest-190.cs
Log:
New test.
Added: trunk/mcs/tests/gtest-190.cs
===================================================================
--- trunk/mcs/tests/gtest-190.cs 2005-08-03 15:35:46 UTC (rev 47964)
+++ trunk/mcs/tests/gtest-190.cs 2005-08-03 15:42:18 UTC (rev 47965)
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+
+public class Foo<T>
+{
+ public abstract class Node
+ { }
+
+ public class ConcatNode : Node
+ { }
+
+ public Node GetRoot ()
+ {
+ return new ConcatNode ();
+ }
+
+ public void Test (Node root)
+ {
+ ConcatNode concat = root as ConcatNode;
+ Console.WriteLine (concat);
+ }
+}
+
+class X
+{
+ static void Main ()
+ {
+ Foo<int> foo = new Foo<int> ();
+ Foo<int>.Node root = foo.GetRoot ();
+ foo.Test (root);
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches