2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / tests / gtest-237.cs
blob0dce169e6d99111c64e14244930831db30e2cd13
1 using System;
3 class Foo<T>
5 public int Test (T foo)
7 return 1;
10 public int Test (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 (4L) != 1)
23 return 1;
24 if (foo.Test (3) != 2)
25 return 2;
26 if (bar.Test (3) != 2)
27 return 3;
28 return 0;