blob: 829ab01c70fc40c033a9012249528e890db2e604 (
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
26
27
28
29
30
|
using Mono.Linker.Tests.Cases.Expectations.Assertions;
namespace Mono.Linker.Tests.Cases.VirtualMethods {
class ClassImplemtingInterfaceMethodsThroughBaseClass4 {
public static void Main ()
{
new A ().Foo ();
}
[Kept]
interface IFoo {
void Foo ();
}
[KeptMember (".ctor()")]
class B {
[Kept]
public void Foo ()
{
}
}
[KeptMember (".ctor()")]
[KeptBaseType (typeof (B))]
[KeptInterface (typeof (IFoo))] // FIXME: Why is it not removed
class A : B, IFoo {
//my IFoo.Foo() is actually implemented by B which doesn't know about it.
}
}
}
|