fork(2) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. R r = new R();
  8. System.Console.WriteLine(r.GetG());
  9. }
  10. public class G
  11. {
  12. public int Id { get; set; }
  13. }
  14.  
  15. public class R
  16. {
  17. public G GetG ()
  18. {
  19. G g;
  20. return g;
  21. }
  22. }
  23. }
  24.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(20,20): error CS0165: Use of unassigned local variable `g'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty