Merge pull request #3806 from BrzVlad/feature-parallel-gc-final
[mono-project.git] / mcs / errors / cs0266-18.cs
blob2318a150deebadb8ed89e1f5fa12c980703e5bcc
1 // CS0266: Cannot implicitly convert type `B' to `I'. An explicit conversion exists (are you missing a cast?)
2 // Line: 21
4 interface I { }
6 class A : I { }
8 class B
10 public static explicit operator A (B from)
12 return new A ();
16 class App
18 public static void Main ()
20 B b = new B ();
21 I i = b;