using System; public class Test { public static void Main() { foreach(var i in new[]{1, 2, 3}) { int s = i; } Console.WriteLine(s); } }
Standard input is empty
prog.cs(11,21): error CS0103: The name `s' does not exist in the current context Compilation failed: 1 error(s), 0 warnings
Standard output is empty