summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0266-11.cs
blob: 5bdbd5610c68605365e24b8f4ed403b62ec58619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0266: Cannot implicitly convert type `int' to `X.E'. An explicit conversion exists (are you missing a cast?)
// Line : 9

class X {
        enum E { }
        
        static void Main ()
        {
                const E e = 1 - 1;
        }
}