Merge pull request #3591 from directhex/mono_libdir_fallback
[mono.git] / mcs / errors / cs0012.cs
old mode 100755 (executable)
new mode 100644 (file)
index fe4b09b..1abc870
@@ -1,34 +1,12 @@
-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