fork download
  1. public class Test
  2. {
  3. public static void Main()
  4. {
  5. int a = 0;
  6. while(true) {
  7. int a = 1;
  8. System.Console.WriteLine(a);
  9. }
  10. }
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(7,17): 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
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty