summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0266-9.cs
blob: 0e5338062ba86438c5fdf4f3798e4b42c9a238d1 (plain)
1
2
3
4
5
6
7
8
9
10
// CS0266: Cannot implicitly convert type `E2' to `E1'. An explicit conversion exists (are you missing a cast?)
// Line : 8

enum E1 { A }
enum E2 { A }

class X {
    const E1 e = ~E2.A;
}