fork download
  1. using System;
  2.  
  3. static class Foo1{}
  4. class Foo2{}
  5.  
  6. public class Test
  7. {
  8. public static void Main()
  9. {
  10. new Foo1();
  11. new Foo2();
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(10,3): error CS0712: Cannot create an instance of the static class `Foo1'
prog.cs(3,14): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty