fork download
  1. public delegate void TestDelegate(int test);
  2.  
  3. public class Test
  4. {
  5. private int test;
  6.  
  7. private void method(int aaa)
  8. {
  9. TestDelegate del = test => aaa++;
  10.  
  11. test++;
  12. }
  13.  
  14. public static void Main()
  15. {
  16. }
  17. }
Compilation error #stdin compilation error #stdout 0.01s 23984KB
stdin
Standard input is empty
compilation info
prog.cs(11,3): error CS0135: `test' conflicts with a declaration in a child block
prog.cs(9,22): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty