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

UnusedTypeHasInterfaceMethodPreservedViaXml.cs « NoKeptCtor « OnReferenceType « Inheritance.Interfaces « Mono.Linker.Tests.Cases « test - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eef58695619e061d19e352540c6310e7b22631bf (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.Inheritance.Interfaces.OnReferenceType.NoKeptCtor {
	public class UnusedTypeHasInterfaceMethodPreservedViaXml {
		public static void Main ()
		{
		}

		interface IFoo {
			void Foo ();
		}

		interface IBar {
			void Bar ();
		}

		[Kept]
		class A : IBar, IFoo {
			[Kept]
			public void Foo ()
			{
			}

			public void Bar ()
			{
			}
		}
	}
}