blob: f370e9e5d75ac11e7b51b81169946888cba74b8d (
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
|
using Mono.Linker.Tests.Cases.Expectations.Assertions;
namespace Mono.Linker.Tests.Cases.VirtualMethods {
class ClassImplemtingInterfaceMethodsThroughBaseClass2 {
public static void Main ()
{
new B ();
IFoo i = null;
i.Foo ();
}
interface IFoo {
[Kept]
void Foo ();
}
[KeptMember (".ctor()")]
class B {
[Kept] // FIXME: Should be removed
public void Foo ()
{
}
}
class A : B, IFoo {
//my IFoo.Foo() is actually implemented by B which doesn't know about it.
}
}
}
|