consulo-csharp
consulo-csharp copied to clipboard
CS0136
#pragma warning disable 219
using System;
namespace test {
public class DefaultTest {
public static void aA(string d = default(string)) {
string[] a = null;
foreach (string s in a)
{
if (true)
{
//int pos = 1; // error here
Action action = () => {
int pos = 2; // error here
};
}
}
int pos = 2;
}
}
}
foreach variable not global for each statements
bug