Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

27 lines
261 B
C#

using System;
struct S
{
}
class C<U>
{
static void Foo<T> (T value) where T : U
{
}
public static void Test (S? s)
{
C<S?>.Foo (s);
C<ValueType>.Foo (s);
C<object>.Foo (s);
}
}
class M
{
public static void Main ()
{
C<int>.Test (null);
}
}