fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int x = 1;
  8. var v = x switch {
  9. 1 => "test",
  10. _ => "done"
  11. };
  12. Console.WriteLine(v);
  13. switch(1)
  14. {
  15. case 0: Console.WriteLine("case 0");
  16. break;
  17. default: goto case default;
  18. }
  19. }
  20. }
  21.  
Success #stdin #stdout 0.06s 26540KB
stdin
Standard input is empty
stdout
test
case 0