-class Y {
- byte b;
-
- public static implicit operator int (Y i)
- {
- return i.b;
- }
+// CS0012: The type `A1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
+// Line: 10
+// Compiler options: -r:CS0012-lib.dll
-// public static implicit operator byte (Y i)
-// {
-// return i.b;
-// }
-
- public Y (byte b)
+class Test
+{
+ public static void Main ()
{
- this.b = b;
- }
-}
-
-class X {
- static void Main ()
- {
- Y y = new Y (1);
-
- switch (y){
- case 0:
- break;
- case 1:
- break;
- }
-
- int a = y;
+ var b = new B ();
+ b.Test ();
}
-}
+}
\ No newline at end of file