diff options
author | Tlakaelel Axayakatl Ceja <tlakaelel.ceja@microsoft.com> | 2021-03-20 05:08:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 05:08:01 +0300 |
commit | 8bbc089bbf6db9343f94861e647137e71dfb719f (patch) | |
tree | a94adda9f76e6e676e38f6f01695b34ef117e26a /test/Mono.Linker.Tests.Cases/DataFlow | |
parent | f602b28f011d775e32cba4f6ed05606b17cc20bd (diff) |
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
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/DataFlow')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/DataFlow/PropertyDataFlow.cs | 1 |
1 files changed, 1 insertions, 0 deletions
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 (); |