New test.
[mono.git] / mcs / errors / gcs1959-2.cs
1 // CS1959: Type parameter `T' cannot be declared const\r
2 // Line: 8\r
3 \r
4 struct S\r
5 {\r
6         public void Foo<T> () where T : struct\r
7         {\r
8                 const T t = null;\r
9         }\r
10 }\r