Merge pull request #3565 from vargaz/no-free-imt-thunks
[mono.git] / mcs / errors / cs0029-13.cs
1 // CS0029: Cannot implicitly convert type `int' to `A'
2 // Line: 14
3
4 class A
5 {
6         public static implicit operator int (A x)
7         {
8                 return 1;
9         }
10         
11         public static void Main ()
12         {
13                 var a = new A ();
14                 a++;
15         }
16 }