@@ -209,6 +209,14 @@ public unsafe void MethodName()
209209 x++ ?. ToString();
210210 x++ ?.ToString();
211211 x++?. ToString();
212+
213+ y-- -> ToString();
214+ y-- ->ToString();
215+ y---> ToString();
216+
217+ y++ -> ToString();
218+ y++ ->ToString();
219+ y++-> ToString();
212220 }
213221}
214222" ;
@@ -234,6 +242,14 @@ public unsafe void MethodName()
234242 x++?.ToString();
235243 x++?.ToString();
236244 x++?.ToString();
245+
246+ y--->ToString();
247+ y--->ToString();
248+ y--->ToString();
249+
250+ y++->ToString();
251+ y++->ToString();
252+ y++->ToString();
237253 }
238254}
239255" ;
@@ -258,6 +274,16 @@ public unsafe void MethodName()
258274 this . CSharpDiagnostic ( ) . WithLocation ( 20 , 14 ) . WithArguments ( "." , "followed" ) ,
259275 this . CSharpDiagnostic ( ) . WithLocation ( 21 , 13 ) . WithArguments ( "?" , "preceded" ) ,
260276 this . CSharpDiagnostic ( ) . WithLocation ( 22 , 13 ) . WithArguments ( "." , "followed" ) ,
277+
278+ this . CSharpDiagnostic ( ) . WithLocation ( 24 , 13 ) . WithArguments ( "->" , "preceded" ) ,
279+ this . CSharpDiagnostic ( ) . WithLocation ( 24 , 13 ) . WithArguments ( "->" , "followed" ) ,
280+ this . CSharpDiagnostic ( ) . WithLocation ( 25 , 13 ) . WithArguments ( "->" , "preceded" ) ,
281+ this . CSharpDiagnostic ( ) . WithLocation ( 26 , 12 ) . WithArguments ( "->" , "followed" ) ,
282+
283+ this . CSharpDiagnostic ( ) . WithLocation ( 28 , 13 ) . WithArguments ( "->" , "preceded" ) ,
284+ this . CSharpDiagnostic ( ) . WithLocation ( 28 , 13 ) . WithArguments ( "->" , "followed" ) ,
285+ this . CSharpDiagnostic ( ) . WithLocation ( 29 , 13 ) . WithArguments ( "->" , "preceded" ) ,
286+ this . CSharpDiagnostic ( ) . WithLocation ( 30 , 12 ) . WithArguments ( "->" , "followed" ) ,
261287 } ;
262288
263289 await this . VerifyCSharpDiagnosticAsync ( testCode , expected , CancellationToken . None ) . ConfigureAwait ( false ) ;
0 commit comments