Merge pull request #1821 from iainx/replace-getline
[mono-project.git] / mcs / errors / cs0019-55.cs
blob18163fa1f0592b5895f73b3fa4d5dc962a3a3801
1 // CS0019: Operator `==' cannot be applied to operands of type `A' and `int?'
2 // Line: 22
4 class A
6 public static bool operator == (A a, int b)
8 return false;
11 public static bool operator != (A a, int b)
13 return false;
17 class C
19 public static void Main ()
21 A a = new A ();
22 object b = a == Id;
25 static int? Id {
26 get { return 1; }