* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git] / tests / gtest-022.cs
blob1a7df651723ceae8803eb425baa664deb2b5324a
1 // A non-generic type may have a closed constructed type as its parent
3 class Foo<T>
5 public void Hello ()
6 { }
8 public void World (T t)
10 Hello ();
14 class Bar : Foo<int>
16 public void Test ()
18 Hello ();
19 World (4);
23 class X
25 static void Main ()
27 Bar bar = new Bar ();
28 bar.Test ();