blob: d5eda52b21fa1cb19e8064a9bb6a15ba2c198cab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// CS0453: The type `Bar?' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Foo<T>'
// Line: 14
public class Foo<T>
where T : struct
{ }
public struct Bar
{ }
class X
{
static void Main ()
{
Foo<Bar?> foo;
}
}
|