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

FieldThatOnlyGetsSetIsRemoved.cs « Advanced « Mono.Linker.Tests.Cases « Tests « linker - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c4933ad2ece8498f38e3fcf617624f6b6a8646e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using Mono.Linker.Tests.Cases.Expectations.Assertions;

namespace Mono.Linker.Tests.Cases.Advanced {
	[IgnoreTestCase ("We cannot do this yet")]
	class FieldThatOnlyGetsSetIsRemoved {
		public static void Main ()
		{
			new B ().Method ();
		}

		[KeptMember (".ctor()")]
		class B {
			public int _unused = 3;

			[Kept]
			public void Method ()
			{
			}
		}
	}
}