11 lines
146 B
C#
Raw Normal View History

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