Merge pull request #5082 from kumpera/fix-ro-fs-file-delete
[mono.git] / mcs / errors / cs0019-39.cs
1 // CS0019: Operator `!=' cannot be applied to operands of type `method group' and `string'
2 // Line: 20
3
4 namespace InternalAccess
5 {
6         public abstract class Base
7         {
8                 internal string Prop () { return "a"; }
9         }
10
11         public class DerivedProtectedExample : Base
12         {
13                 protected new string Prop { get { return "E"; } }
14         }
15
16         class MainClass
17         {
18                 public static int Main ()
19                 {
20                         DerivedProtectedExample dpe = new DerivedProtectedExample ();
21                         if (dpe.Prop != "A")
22                                 return 2;
23
24                         return 0;
25                 }
26         }
27 }