fork download
  1. partial class B
  2. {
  3.  
  4. }
  5.  
  6. class A
  7. {
  8. public A(B b)
  9. {
  10.  
  11. }
  12. }
  13.  
  14. partial class B
  15. {
  16. A a = new A(this);
  17. }
  18.  
  19. class Program
  20. {
  21. static void Main()
  22. {
  23.  
  24. }
  25. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(16,17): error CS0027: Keyword `this' is not available in the current context
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty