* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git] / tests / gtest-236.cs
blobcce3049305d10cef90d3c6fe9c484de73ec2063f
1 using System;
3 class Foo<T>
5 public int Test (Foo<T> foo)
7 return 1;
10 public int Test (Foo<int> foo)
12 return 2;
16 class X
18 static int Main ()
20 Foo<long> foo = new Foo<long> ();
21 Foo<int> bar = new Foo<int> ();
22 if (foo.Test (foo) != 1)
23 return 1;
24 if (foo.Test (bar) != 2)
25 return 2;
26 if (bar.Test (bar) != 2)
27 return 3;
28 return 0;