File tree 1 file changed +5
-5
lines changed
csharp/ql/test/query-tests/Dead Code/DeadStoreOfLocal
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ public class OutParam
157
157
public void Test ( )
158
158
{
159
159
int x ;
160
- Fn ( out x ) ; // Missing Alert
160
+ Fn ( out x ) ; // $ MISSING: Alert
161
161
Fn ( out _ ) ; // GOOD
162
162
}
163
163
@@ -194,7 +194,7 @@ void M1()
194
194
195
195
void M2 ( )
196
196
{
197
- var x = M6 ( ) ; // Missing Alert
197
+ var x = M6 ( ) ; // $ MISSING: Alert
198
198
Action a = ( ) =>
199
199
{
200
200
x = 1 ; // GOOD
@@ -208,7 +208,7 @@ void M3()
208
208
int x ;
209
209
Action a = ( ) =>
210
210
{
211
- x = 1 ; // Missing Alert
211
+ x = 1 ; // $ MISSING: Alert
212
212
} ;
213
213
a ( ) ;
214
214
}
@@ -230,7 +230,7 @@ void M4()
230
230
231
231
void M5 ( )
232
232
{
233
- int x = 0 ; // Missing Alert.
233
+ int x = 0 ; // $ MISSING: Alert
234
234
Action a = ( ) =>
235
235
{
236
236
x = 1 ; // GOOD
@@ -250,7 +250,7 @@ int M6()
250
250
int captured = 0 ; // GOOD: Variable captured variable
251
251
fn ( ( ) => { return captured ; } ) ;
252
252
253
- return captured = 1 ; // Missing Alert.
253
+ return captured = 1 ; // $ MISSING: Alert
254
254
}
255
255
256
256
void M7 ( )
You can’t perform that action at this time.
0 commit comments