fork download
  1. using System;
  2.  
  3. internal class Test : Test.IWeird
  4. {
  5. private interface IWeird
  6. {
  7. }
  8.  
  9.  
  10. public static void Main()
  11. {
  12. // your code goes here
  13. }
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(3,16): error CS0146: Circular base class dependency involving `Test' and `Test.IWeird'
prog.cs(5,23): (Location of the symbol related to previous error)
prog.cs(5,23): error CS0529: Inherited interface `Test.IWeird' causes a cycle in the interface hierarchy of `Test.IWeird'
prog.cs(5,23): (Location of the symbol related to previous error)
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty