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

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

namespace Mono.Linker.Tests.Cases.VirtualMethods
{
	class StructUsedFromConcreteTypeHasInterfaceMethodRemoved {
		public static void Main ()
		{
			A a = new A ();
			a.Foo ();
		}

		[Kept]
		[KeptInterface (typeof (IFoo))]
		struct A : IFoo {
			[Kept]
			public void Foo ()
			{
			}
		}

		[Kept]
		public interface IFoo {
			void Foo ();
		}
	}
}