Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

33 lines
451 B
C#

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
{
public static void Main ()
{
Foo<int> foo = new Foo<int> ();
Foo<int>.Node root = foo.GetRoot ();
foo.Test (root);
}
}