From 8bbc089bbf6db9343f94861e647137e71dfb719f Mon Sep 17 00:00:00 2001 From: Tlakaelel Axayakatl Ceja Date: Fri, 19 Mar 2021 19:08:01 -0700 Subject: Add Recognized pattern to actually verify there is no errors (#1908) Add Recognized Reflection Access Pattern to PropertyIndexers test otherwise, the linker will not test for errors --- test/Mono.Linker.Tests.Cases/DataFlow/PropertyDataFlow.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'test/Mono.Linker.Tests.Cases/DataFlow') diff --git a/test/Mono.Linker.Tests.Cases/DataFlow/PropertyDataFlow.cs b/test/Mono.Linker.Tests.Cases/DataFlow/PropertyDataFlow.cs index 25ee91195..64cd80822 100644 --- a/test/Mono.Linker.Tests.Cases/DataFlow/PropertyDataFlow.cs +++ b/test/Mono.Linker.Tests.Cases/DataFlow/PropertyDataFlow.cs @@ -269,6 +269,7 @@ namespace Mono.Linker.Tests.Cases.DataFlow set { PropertyWithExistingAttributes_Field = value; } } + [RecognizedReflectionAccessPattern] public void TestPropertyWithIndexerWithMatchingAnnotations ([DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.PublicConstructors)] Type myType) { var propclass = new PropertyWithIndexer (); -- cgit v1.2.3