summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0023-14.cs
blob: 63f11633c9fc8e9b3fc843989b133710b1400ff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0023: The `++' operator cannot be applied to operand of type `bool'
// Line: 13

public class C{
  public static bool Foo{
    get{
      return false;
    }
    set{
    }	
  }
  public static void Main(){
    Foo++;
  }
}