Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

29
mcs/tests/gtest-045.cs Normal file
View File

@@ -0,0 +1,29 @@
// Important test: Type inference
class Test<A,B>
{
public void Foo<U> (U u)
{ }
public void Foo<V> (V[] v, V w)
{ }
public void Hello<V,W> (V v, W w, Test<V,W> x)
{ }
public void ArrayMethod<V> (params V[] args)
{ }
}
class X
{
public static void Main ()
{
Test<float,int> test = new Test<float,int> ();
test.Foo ("Hello World");
test.Foo (new long[] { 3, 4, 5 }, 9L);
test.Hello (3.14F, 9, test);
test.ArrayMethod (3.14F, (float) 9 / 3);
}
}