From 6ba5416d609dddbc202e2d3158dc67c876f6d645 Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Fri, 27 Sep 2024 18:40:37 +0400 Subject: [PATCH] Supress suggestion of primary constructor for Success/Nonsuccess --- .../Result/Nonsuccess.T/Nonsuccess.T.Factory.Constructor.cs | 4 +++- .../Result/Success.T/Success.T.Factory.Constructor.cs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core-taggeds-result/Result/Nonsuccess.T/Nonsuccess.T.Factory.Constructor.cs b/src/core-taggeds-result/Result/Nonsuccess.T/Nonsuccess.T.Factory.Constructor.cs index a1e3b960..33f2f46d 100644 --- a/src/core-taggeds-result/Result/Nonsuccess.T/Nonsuccess.T.Factory.Constructor.cs +++ b/src/core-taggeds-result/Result/Nonsuccess.T/Nonsuccess.T.Factory.Constructor.cs @@ -1,4 +1,6 @@ -namespace System; +#pragma warning disable IDE0290 // Use primary constructor + +namespace System; partial struct Nonsuccess { diff --git a/src/core-taggeds-result/Result/Success.T/Success.T.Factory.Constructor.cs b/src/core-taggeds-result/Result/Success.T/Success.T.Factory.Constructor.cs index 6a47963c..c2296097 100644 --- a/src/core-taggeds-result/Result/Success.T/Success.T.Factory.Constructor.cs +++ b/src/core-taggeds-result/Result/Success.T/Success.T.Factory.Constructor.cs @@ -1,4 +1,6 @@ -namespace System; +#pragma warning disable IDE0290 // Use primary constructor + +namespace System; partial struct Success {