Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-295.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 09a98cd338743b913a0248667b1cbe5a14c75fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
namespace Test {
    class Cache<T> where T : class {
    }

    class Base {
    }

    class MyType<T> where T : Base {
        Cache<T> _cache;   // CS0452
    }

    class Foo { static void Main () { object foo = new MyType<Base> (); } }
}