[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / errors / cs1959-2.cs
1 // CS1959: Type parameter `T' cannot be declared const
2 // Line: 8
3
4 struct S
5 {
6         public void Foo<T> () where T : struct
7         {
8                 const T t = null;
9         }
10 }