11 lines
146 B
C#
11 lines
146 B
C#
|
// CS1959: Type parameter `T' cannot be declared const
|
||
|
// Line: 8
|
||
|
|
||
|
struct S
|
||
|
{
|
||
|
public void Foo<T> () where T : struct
|
||
|
{
|
||
|
const T t = null;
|
||
|
}
|
||
|
}
|