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

LocalPassedAsParameter.cs « NoKeptCtorButInterfaceNeeded « 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: 5338cc6ba5aa54a9048a9e9df407ab7b8716c3dd (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.Inheritance.Interfaces.OnReferenceType.NoKeptCtorButInterfaceNeeded {
	public class LocalPassedAsParameter {
		public static void Main ()
		{
			Foo f = null;
			Helper (f);
		}

		[Kept]
		static void Helper (IFoo f)
		{
		}

		[Kept]
		[KeptInterface (typeof (IFoo))]
		class Foo : IFoo {
		}

		[Kept]
		interface IFoo {
		}
	}
}