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

TypeWithPreserveFieldsHasBackingFieldsOfPropertiesRemoved.cs « LinkXml « Mono.Linker.Tests.Cases « Tests « linker - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d657017721ba28638f4cb86d6e5e8a5b59bb4f1d (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72


using Mono.Linker.Tests.Cases.Expectations.Assertions;

namespace Mono.Linker.Tests.Cases.LinkXml
{
	class TypeWithPreserveFieldsHasBackingFieldsOfPropertiesRemoved {
		public static void Main () {
		}

		[Kept]
		[KeptInterface(typeof (IFoo<System.Int32>))]
		[KeptInterface(typeof (IFoo<System.String>))]
		[KeptInterface(typeof (IFoo<Cat>))]
		[KeptInterface(typeof (IFoo2<System.Int32>))]
		[KeptInterface(typeof (IFoo3<System.Int32,System.String,System.Char>))]
		[KeptInterface(typeof (IDog))]
		[KeptInterface(typeof (IFoo<IFoo<System.Int32>>))]
		class Unused : IFoo<int>, IFoo<string>, IFoo<Cat>, IFoo2<int>, IFoo3<int, string, char>, IDog, IFoo<IFoo<int>> {
			[Kept]
			public int Field1;

			[Kept]
			public IFoo<int> Field2;

			public IFoo<int> Property1 { get; set; }

			string IDog.Name { get; set; }

			int IFoo<int>.Bar { get; set; }

			int IFoo<string>.Bar { get; set; }

			int IFoo<Cat>.Bar { get; set; }

			int Bar2 { get; set; }

			int IFoo2<int>.Bar2 { get; set; }

			int Bar3 { get; set; }

			int IFoo3<int, string, char>.Bar3 { get; set; }

			int IFoo<IFoo<int>>.Bar { get; set; }
		}

		[Kept]
		interface IDog {
			string Name { get; set; }
		}

		[Kept]
		interface IFoo<T> {

			int Bar { get; set; }
		}

		[Kept]
		interface IFoo2<T> {
			int Bar2 { get; set; }
		}

		[Kept]
		interface IFoo3<T, K, J> {
			int Bar3 { get; set; }
		}

		[Kept]
		class Cat {
		}
	}
}