blob: 76457ce5365944c992a1acf385eb4fc2055684af (
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
31
|
using Mono.Linker.Tests.Cases.Expectations.Assertions;
namespace Mono.Linker.Tests.Cases.Inheritance.VirtualMethods
{
class VirtualMethodGetsStrippedIfImplementingMethodGetsInvokedDirectly
{
public static void Main ()
{
new A ().Foo ();
}
[KeptMember (".ctor()")]
class B
{
[Kept] // TODO: Would be nice to be removed
public virtual void Foo ()
{
}
}
[KeptMember (".ctor()")]
[KeptBaseType (typeof (B))]
class A : B
{
[Kept]
public override void Foo ()
{
}
}
}
}
|