Skip to content

Commit

Permalink
Add test with multiple filed declarations in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Feb 16, 2023
1 parent 438e2dc commit eed9667
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -6,6 +6,10 @@ public class StaticFieldVisible
{
public static double Pi = 3.14; // Noncompliant
// ^^
public static int X = 1, Y, Z = 100;
// ^
// ^@-1
// ^@-2
public const double Pi2 = 3.14;
public double Pi3 = 3.14;

Expand Down

0 comments on commit eed9667

Please sign in to comment.