mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
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.
15 lines
272 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
|
|
|