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

31 lines
324 B
C#

// A non-generic type may have a closed constructed type as its parent
class Foo<T>
{
public void Hello ()
{ }
public void World (T t)
{
Hello ();
}
}
class Bar : Foo<int>
{
public void Test ()
{
Hello ();
World (4);
}
}
class X
{
public static void Main ()
{
Bar bar = new Bar ();
bar.Test ();
}
}