diff options
author | Tlakaelel Axayakatl Ceja <tlakaelel.ceja@microsoft.com> | 2022-04-27 01:37:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 01:37:09 +0300 |
commit | 6ffb647f615c9ae18e3af4ccf075e83c27855ef5 (patch) | |
tree | 9c1c96e9d0e33de6f8ebd2090a8376fc99131cdd /test/Mono.Linker.Tests.Cases | |
parent | 24e38a5ded83c1b499f70e4463c7a64e315b804b (diff) |
Change requires on type checking for mismatch (#2766)
If a member creates a requirement ask the override/virtual member if it fulfills the requirement and only then warns.
Fixes #2763
Diffstat (limited to 'test/Mono.Linker.Tests.Cases')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresOnClass.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresOnClass.cs b/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresOnClass.cs index a3fea5787..c5979bc34 100644 --- a/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresOnClass.cs +++ b/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresOnClass.cs @@ -324,9 +324,7 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability [RequiresDynamicCode ("RDC")] class DerivedWithRequiresOnTypeOverBaseWithNoRequires : BaseWithNoRequires { - // https://github.com/dotnet/linker/issues/2763 - [ExpectedWarning ("IL2046", ProducedBy = ProducedBy.Analyzer)] - [ExpectedWarning ("IL3051", ProducedBy = ProducedBy.Analyzer)] + // Should not warn since the members are not static public override void Method () { } |