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

40
mcs/tests/dtest-030.cs Normal file
View File

@@ -0,0 +1,40 @@
using System;
class A<T>
{
}
class B
{
static void M1<T> (T t) where T : struct
{
}
static void M2<T, U> (T t, U u) where U : IEquatable<T>
{
}
static void M3<T, U> (T t, A<U> u) where U : IEquatable<T>
{
}
static void M4<T, U> (T t, IEquatable<U> u) where T : IEquatable<U>
{
}
public static void Main ()
{
dynamic d = 2;
M1 (d);
M2 (d, 6);
M2 (4, d);
M3 (d, new A<int> ());
M4 (d, 6);
// TODO: type inference
//M4 (4, d);
}
}