diff --git a/tests/D2L.CodeStyle.Analyzers.Test/Specs/ImmutabilityAnalyzer.cs b/tests/D2L.CodeStyle.Analyzers.Test/Specs/ImmutabilityAnalyzer.cs index c5b0089a..d0798b99 100644 --- a/tests/D2L.CodeStyle.Analyzers.Test/Specs/ImmutabilityAnalyzer.cs +++ b/tests/D2L.CodeStyle.Analyzers.Test/Specs/ImmutabilityAnalyzer.cs @@ -1461,4 +1461,10 @@ static ClassWithCapturedMutability() { SometimesBad2 = static () => 2; } } + + [Immutable] + public class ClassPrimaryConstructor( ClassPrimaryConstructor other ) { + private readonly int m_x; + private int m_y; + } }