summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0571.cs
blob: 6b58089fdba257bde31f02ad7d7c172e90c67f94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0571: `MainClass.Value.get': cannot explicitly call operator or accessor
// Line: 12

class MainClass {
        static int Value {
                get {
                        return 1;
                }
        }
        
        public static void Main() {
                int value = get_Value();
        }
}