fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public class Tsundere {
  6. public static implicit operator int(Tsundere tsundere) => 228;
  7. public static implicit operator string(Tsundere tsundere) => "waifu";
  8. }
  9.  
  10. public static void Main()
  11. {
  12. var tsundere = new Tsundere();
  13. if (tsundere == 228 && tsundere == "waifu")
  14. Console.WriteLine("darova");
  15. }
  16. }
Success #stdin #stdout 0.01s 131648KB
stdin
Standard input is empty
stdout
darova