Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-190.cs
1 using System;
2 using System.Collections.Generic;
3
4 public class Foo<T>
5 {
6         public abstract class Node
7         { }
8
9         public class ConcatNode : Node
10         { }
11
12         public Node GetRoot ()
13         {
14                 return new ConcatNode ();
15         }
16
17         public void Test (Node root)
18         {
19                 ConcatNode concat = root as ConcatNode;
20                 Console.WriteLine (concat);
21         }
22 }
23
24 class X
25 {
26         public static void Main ()
27         {
28                 Foo<int> foo = new Foo<int> ();
29                 Foo<int>.Node root = foo.GetRoot ();
30                 foo.Test (root);
31         }
32 }