Merge pull request #3563 from lewurm/interpreter
[mono.git] / mcs / tests / test-786.cs
index 36cc025ecef486864f85ee550395ed7e30f553e8..47dab4de2ed0c10d613559339c139aa05725291f 100644 (file)
@@ -45,6 +45,14 @@ public struct E
        }
 }
 
+public class F
+{
+       public static implicit operator bool (F f)
+       {
+               throw new ApplicationException ();
+       }
+}
+
 class Program
 {      
        public static int Main ()
@@ -76,6 +84,9 @@ class Program
 
                if (new E () != new E ()  || E.Counter != 2)
                        return 31;
+
+               if (new F () == new F ())
+                       return 40;
                
                Console.WriteLine ("ok");
                return 0;