From 7345e87ac160b4f579345429254c0f62a9273631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Breu=C3=9F?= Date: Wed, 20 Mar 2024 02:21:25 +0100 Subject: [PATCH] Disable build warning `warning CS0436: The type 'NotNullWhenAttribute' in '...\net40\Nullable\NotNullWhenAttribute.cs' conflicts with the imported type 'NotNullWhenAttribute' in 'Testably.Abstractions.Testing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in '...\net40\Nullable\NotNullWhenAttribute.cs'.` --- .../Statistics/StatisticsTests.Helpers.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/Testably.Abstractions.Testing.Tests/Statistics/StatisticsTests.Helpers.cs b/Tests/Testably.Abstractions.Testing.Tests/Statistics/StatisticsTests.Helpers.cs index b91e5efc2..416993adf 100644 --- a/Tests/Testably.Abstractions.Testing.Tests/Statistics/StatisticsTests.Helpers.cs +++ b/Tests/Testably.Abstractions.Testing.Tests/Statistics/StatisticsTests.Helpers.cs @@ -324,6 +324,7 @@ private static string GetName(Type type, bool firstCharUpperCase) return type.Name; } + #pragma warning disable CS0436 // Nullable is also declared in Testable.Abstractions.Testing which internals are visible to this project private static bool HasSpecialNameInLowerCase(Type type, [NotNullWhen(true)] out string? name) { @@ -385,5 +386,6 @@ private static bool HasSpecialNameInUpperCase(Type type, name = null; return false; } + #pragma warning restore CS0436 } }