[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / errors / cs0030-14.cs
1 // CS0030: Cannot convert type `T' to `X'
2 // Line: 8
3 class Foo<T>
4         where T : System.ICloneable
5 {
6         public X Test (T t)
7         {
8                 return (X) t;
9         }
10 }
11
12 class X
13 {
14         static void Main ()
15         { }
16 }