Skip to content

Commit 70a174a

Browse files
committed
C#: Address review comments.
1 parent dd1fbd2 commit 70a174a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: csharp/ql/test/query-tests/Dead Code/DeadStoreOfLocal/DeadStoreOfLocal.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public class OutParam
157157
public void Test()
158158
{
159159
int x;
160-
Fn(out x); // Missing Alert
160+
Fn(out x); // $ MISSING: Alert
161161
Fn(out _); // GOOD
162162
}
163163

@@ -194,7 +194,7 @@ void M1()
194194

195195
void M2()
196196
{
197-
var x = M6(); // Missing Alert
197+
var x = M6(); // $ MISSING: Alert
198198
Action a = () =>
199199
{
200200
x = 1; // GOOD
@@ -208,7 +208,7 @@ void M3()
208208
int x;
209209
Action a = () =>
210210
{
211-
x = 1; // Missing Alert
211+
x = 1; // $ MISSING: Alert
212212
};
213213
a();
214214
}
@@ -230,7 +230,7 @@ void M4()
230230

231231
void M5()
232232
{
233-
int x = 0; // Missing Alert.
233+
int x = 0; // $ MISSING: Alert
234234
Action a = () =>
235235
{
236236
x = 1; // GOOD
@@ -250,7 +250,7 @@ int M6()
250250
int captured = 0; // GOOD: Variable captured variable
251251
fn(() => { return captured; });
252252

253-
return captured = 1; // Missing Alert.
253+
return captured = 1; // $ MISSING: Alert
254254
}
255255

256256
void M7()

0 commit comments

Comments
 (0)