a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
27 lines
261 B
C#
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);
|
|
}
|
|
} |