2009-02-15 Jonathan Chambers <joncham@gmail.com>
[mcs.git] / tests / gtest-190.cs
blob94fbb7b776affa62807212cb693d7d8cb1c20300
1 using System;
2 using System.Collections.Generic;
4 public class Foo<T>
6 public abstract class Node
7 { }
9 public class ConcatNode : Node
10 { }
12 public Node GetRoot ()
14 return new ConcatNode ();
17 public void Test (Node root)
19 ConcatNode concat = root as ConcatNode;
20 Console.WriteLine (concat);
24 class X
26 static void Main ()
28 Foo<int> foo = new Foo<int> ();
29 Foo<int>.Node root = foo.GetRoot ();
30 foo.Test (root);