Skip to content

Commit 694aa25

Browse files
committed
Fix SA1009 handling of closing parenthesis followed by pointer dereference
Fixes #1832
1 parent 3c3c99b commit 694aa25

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

StyleCop.Analyzers/StyleCop.Analyzers/SpacingRules/SA1009ClosingParenthesisMustBeSpacedCorrectly.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ private static void HandleCloseParenToken(SyntaxTreeAnalysisContext context, Syn
128128
break;
129129

130130
case SyntaxKind.DotToken:
131-
// allow a space for this case, but only if the ')' character is the last on the line
131+
case SyntaxKind.MinusGreaterThanToken:
132+
// allow a space for these cases, but only if the ')' character is the last on the line
132133
allowEndOfLine = true;
133134
precedesStickyCharacter = true;
134135
break;

0 commit comments

Comments
 (0)