Welcome to mirror list, hosted at ThFree Co, Russian Federation.

UsedInterfaceIsKept.cs « Basic « Mono.Linker.Tests.Cases « test - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e399d2c9b606a2598e73551ff98405517fc8b8e5 (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
using Mono.Linker.Tests.Cases.Expectations.Assertions;

namespace Mono.Linker.Tests.Cases.Basic
{
	class UsedInterfaceIsKept
	{
		public static void Main ()
		{
			A a = new A ();
			var t = typeof (I).ToString();
		}

		[Kept]
		[KeptInterface (typeof (I))]
		[KeptMember (".ctor()")]
		class A : I
		{
		}

		[Kept]
		interface I
		{ 
		}
	}
}