fork download
  1. using System;
  2.  
  3. class var
  4. {
  5. public static implicit operator int (var x) { return 0; }
  6. public static implicit operator var (int x) { return null; }
  7. public static var operator ++ (var x) { return x; }
  8. }
  9.  
  10. public class Test
  11. {
  12. public static void Main()
  13. {
  14. int i = 0;
  15.  
  16. for (var x=0; x<3; ++x)
  17. {
  18. Console.WriteLine(x);
  19. if (++i > 15) break;
  20. }
  21. }
  22. }
Success #stdin #stdout 0s 29664KB
stdin
Standard input is empty
stdout
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0