[sdks] Fix README.md
[mono-project.git] / mcs / tests / gtest-190.cs
blobcbdb2e5f5db5c06e2d57326b123e00e26c084faf
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 public static void Main ()
28 Foo<int> foo = new Foo<int> ();
29 Foo<int>.Node root = foo.GetRoot ();
30 foo.Test (root);