Files
mono/mcs/errors/cs0136.cs
T
Marek Safar 1384869c80 The first push to make flow-analysis work for complex blocks.
All blocks are now strictly hierachical which greatly simplifies many
things and fixes many subtle bugs with local names. Removing the block
cross references helps scalling when compiling deeply nested blocks or
large method bodies including linq. Prepared possible dynamic statements
to work with variable declarators.
2010-09-09 14:01:00 +01:00

15 lines
272 B
C#

// CS0136: A local variable named `i' cannot be declared in this scope because it would give a different meaning to `i', which is already used in a `parent or current' scope to denote something else
// Line: 9
class X {
void b ()
{
int i;
{
string i;
}
}
}