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

37
mcs/tests/gtest-400.cs Normal file
View File

@@ -0,0 +1,37 @@
using System;
class Gen<T> where T : class
{
public static bool Foo (T t)
{
return t is Program;
}
}
class Program
{
static bool Foo<T> ()
{
object o = 1;
return o is T;
}
public static int Main ()
{
if (Foo<bool> ())
return 1;
if (!Foo<int> ())
return 2;
if (Gen<object>.Foo (null))
return 3;
if (!Gen<Program>.Foo (new Program ()))
return 4;
Console.WriteLine ("ok");
return 0;
}
}