summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-488.cs
blob: 49aa06247ea8c9735ce9dd2358b5b9852ee99181 (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
class Ref {}

class Def : Ref {}

interface IFooRef {
    Ref Bar { get; }
}

interface IFooDef : IFooRef {
    new Def Bar { get; set; }
}

class FooProcessor<T> where T : IFooDef {
    public void Attach (T t, Def def)
    {
        t.Bar = def;
    }
}

class Program {
    public static void Main ()
    {
    }
}