[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / errors / cs0019-39.cs
bloba0f552618f7d7d841cb71a7bc5b910c7ee5be63e
1 // CS0019: Operator `!=' cannot be applied to operands of type `method group' and `string'
2 // Line: 20
4 namespace InternalAccess
6 public abstract class Base
8 internal string Prop () { return "a"; }
11 public class DerivedProtectedExample : Base
13 protected new string Prop { get { return "E"; } }
16 class MainClass
18 public static int Main ()
20 DerivedProtectedExample dpe = new DerivedProtectedExample ();
21 if (dpe.Prop != "A")
22 return 2;
24 return 0;