fork download
  1. using System;
  2.  
  3. public class Foo
  4. {
  5. public void Foooooo()
  6. {
  7. Console.Writeln("foo!");
  8. }
  9. }
  10.  
  11. public class Bar: Foo
  12. {
  13. public void Baaaaar()
  14. {
  15. Console.Writeln("bar!");
  16. }
  17. }
  18.  
  19. public class Test
  20. {
  21.  
  22.  
  23.  
  24. public static void Main()
  25. {
  26. Foo foo = new Foo();
  27. foo.Foooooo();
  28. Bar bar = new Bar();
  29. bar.Baaaaar();
  30. }
  31. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(7,12): error CS0117: `System.Console' does not contain a definition for `Writeln'
/usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
prog.cs(15,12): error CS0117: `System.Console' does not contain a definition for `Writeln'
/usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty