summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0220.cs
blob: befd46292c3605de7cc52d4498b007af8058358e (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS0220: The operation overflows at compile time in checked mode
// Line: 7

public class MainClass {
        static void Main () {
                const long a = long.MaxValue;
                long b = 2 * a;
        }
}