2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0266-19.cs
blobedf9e1c8192e29804b2e5a95230cd8a9a63b5ea0
1 // CS0266: Cannot implicitly convert type `A' to `B'. An explicit conversion exists (are you missing a cast?)
2 // Line: 17
4 class A
6 public static A operator -- (A x)
8 return new A ();
12 class B : A
14 static void Main ()
16 B b = new B ();
17 --b;