Skip to content

Commit

Permalink
S3459: add reproducer for #9106 (#9112)
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianAmbrosini authored Apr 17, 2024
1 parent 1409c5a commit 35e6404
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,11 @@ public void Print()
}
}
}

// Reproducer: https://github.com/SonarSource/sonar-dotnet/issues/9106
public class Repro_9106
{
private int _foo; // Noncompliant FP

public ref int Foo => ref _foo;
}

0 comments on commit 35e6404

Please sign in to comment.