| Priority |
Normal |
| Type | Bug |
| State | Fixed |
| Assignee | Alexander Zverev |
| Subsystem | No subsystem |
| Affected versions |
No affected versions
|
| Fixed in |
4.1
|
| Fixed in build |
Next build |
| Build |
545
|
| Fixed in build |
900
|
RSRP-51504 |
'Move to outer scope' breaks code |
|
|
using System;
class Program
{
static void Main()
{
using (IDisposable x = null, y = null)
Console.WriteLine(x);
}
}
using System;
class Program
{
static void Main()
{
IDisposable y;
using (y = null)
Console.WriteLine(x); // error CS0103: The name 'x' does not exist in the current context
}
}