2 // Another important test: nested generic types.
9 public Queue (T first, T second)
11 head = new Node<T> (null, second);
12 head = new Node<T> (head, first);
15 protected Node<T> head;
17 protected Node<T> GetFoo ()
22 protected Node<T> Foo {
28 protected void Test (T t)
30 Console.WriteLine (t);
36 Test (head.Next.Item);
37 Test (GetFoo ().Item);
41 protected class Node<U>
43 public readonly U Item;
44 public readonly Node<U> Next;
46 public Node (Node<U> next, U item)
58 Queue<int> queue = new Queue<int> (5, 9);