Updated with review feedback.
[mono.git] / mcs / errors / cs0216-4.cs
1 // CS0216: The operator `Test.operator ==(Test, bool)' requires a matching operator `!=' to also be defined
2 // Line: 11
3
4 public abstract class Test
5 {
6         public static bool operator == (Test lhs, bool rhs)
7         {
8                 return false;
9         }
10
11         public static bool operator != (Test lhs, IDoNotExist rhs)
12         {
13                 return !(lhs == rhs);
14         }
15 }
16