[mcs] C#7 out variable declaration
[mono.git] / mcs / errors / cs0029-37.cs
1 // CS0029: Cannot implicitly convert type `string' to `int'
2 // Line: 8
3
4 class A<T> where T : CB, IA
5 {
6         void Foo (T t)
7         {
8                 t.Prop = "3";
9         }
10 }
11
12 class CB : CA
13 {
14 }
15
16 class CA
17 {
18         public int Prop { get; set; }
19 }
20
21 interface IA
22 {
23         string Prop { get; set; }
24 }