blob: 1a97b7836f2354965a0e97dd7938772c7d0cc9fb (
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
32
33
34
35
36
37
38
39
|
using Mono.Linker.Tests.Cases.Expectations.Assertions;
namespace Mono.Linker.Tests.Cases.Inheritance.Interfaces.OnReferenceType {
public class UnusedExplicitInterfaceHasMethodPreservedViaXml {
public static void Main ()
{
IFoo i = new A ();
i.Foo ();
}
[Kept]
interface IFoo {
[Kept]
void Foo ();
}
[Kept]
interface IBar {
[Kept]
void Bar ();
}
[Kept]
[KeptMember (".ctor()")]
[KeptInterface (typeof (IFoo))]
[KeptInterface (typeof (IBar))]
class A : IBar, IFoo {
[Kept]
void IFoo.Foo ()
{
}
[Kept]
void IBar.Bar ()
{
}
}
}
}
|