fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. int hey() { return 42; }
  6. public static int Main()
  7. {
  8. Test d = new Test();
  9. int a = d.hey(); //would throw if d is null
  10.  
  11. if (d != null) {
  12. return 0;
  13. }
  14. else {
  15. return 1;
  16. }
  17. }
  18. }
Success #stdin #stdout 0.01s 33528KB
stdin
Standard input is empty
stdout
Standard output is empty