fork download
  1. using System;
  2.  
  3. class Program {
  4. public static Program operator +(Program x, int y) {
  5. return x;
  6. }
  7.  
  8. static void Main(string[] args) {
  9. var x = new Program();
  10. Console.WriteLine(x == x + 2);
  11. }
  12. }
Success #stdin #stdout 0.03s 36952KB
stdin
Standard input is empty
stdout
True