summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1722.cs
blob: e2bd6f3a1bfa9e096a083911de4c0a7cfb8271a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// CS1722: `My.Namespace.MyBaseClass': Base class `My.Namespace.MyInterfaceBase' must be specified as first
// Line: 21

using System;

namespace My.Namespace {


    public interface IMyInterface {

        String InterfaceProperty { get; }
    }

    public abstract class MyInterfaceBase : IMyInterface {

        protected abstract String SubclassProperty { get; }

        public String InterfaceProperty { get { return this.SubclassProperty; } }
    }

    public class MyBaseClass : IMyInterface, MyInterfaceBase {
      //  protected override String SubclassProperty { get { return "foo"; } }
    }
}