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

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

namespace Mono.Linker.Tests.Cases.Generics {
	public class UsedOverloadedGenericMethodWithNoParametersIsNotStripped {
		public static void Main ()
		{
			B.Call<string, int> ();
		}

		public class B {
			public static void Method<T> ()
			{
			}

			[Kept]
			public static void Method<TKey, TValue> ()
			{
			}

			[Kept]
			public static void Call<TKey, TValue> ()
			{
				B.Method<TKey, TValue> ();
			}
		}
	}
}