summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-222.cs
blob: f7a8c89666a5c9837420cbec3905da1ef04bc7f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
interface IFoo {}
interface IBar : IFoo {}

class Mona<T> where T : IFoo {}

class Test
{
        public Mona<K> GetMona<K> () where K : IBar
        {
                return new Mona<K> ();
        }

        public static void Main () {}
}