summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0246-21.cs
blob: cf3bbb56fb7cef989e9b70c39b57076374e9daef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// CS0246: The type or namespace name `IBase' could not be found. Are you missing `Foo' using directive?
// Line: 15

namespace Foo {
        public interface IBase {
                object X { get; }
        }
}

public interface IDerived<T> : Foo.IBase {
        T X { get; }
}

public class Test<T> {
        public class Y : IDerived<T>, IBase
        {
                public T X { get { return default (T); } }
                object Foo.IBase.X {
                        get { return default (T); }
                }
        }
}