fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. Foo testFoo = new Foo(1);
  8. }
  9. }
  10.  
  11. public class Foo
  12. {
  13. public Foo()
  14. {
  15. Console.WriteLine("Default");
  16. }
  17.  
  18. public Foo(int param) : this()
  19. {
  20. Console.WriteLine("Param");
  21. }
  22. }
Success #stdin #stdout 0.02s 24120KB
stdin
Standard input is empty
stdout
Default
Param