fork download
  1. using System;
  2.  
  3. public class Test {
  4. public static void Main() {
  5. int a = 0;
  6. Action x = () => { double a = 32; }
  7. }
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(6,35): error CS0136: A local variable named `a' cannot be declared in this scope because it would give a different meaning to `a', which is already used in a `parent or current' scope to denote something else
prog.cs(7,8): error CS1525: Unexpected symbol `}', expecting `,' or `;'
prog.cs(9,1): error CS8025: Parsing error
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty