rsdn/nemerle — Issue #246: Support "int" constants in "case" 
Author: VladD2
Created: 2012-01-19 19:55:43+00:00
State: open
Labels: Bug, C# support

```csharp

enum E
{
A = 2
}

public class Program
{
const int X = 42;

static void Main()
{
E x = (E)X;

switch (x)
{
case E.A:
break;
case (E)Program.X:
System.Console.WriteLine("OK");
break;
default:
break;
}
}
}
```