Skip to content

Commit b8fd20e

Browse files
committed
Add explanation todo comments in the missing call target test file
1 parent b0d3c11 commit b8fd20e

File tree

1 file changed

+4
-4
lines changed
  • csharp/ql/test/query-tests/Telemetry/DatabaseQuality

1 file changed

+4
-4
lines changed

csharp/ql/test/query-tests/Telemetry/DatabaseQuality/Quality.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ public Test()
2323
Event1.Invoke(this, 5);
2424

2525
var str = "abcd";
26-
var sub = str[..3];
26+
var sub = str[..3]; // TODO: this is not an indexer call, but rather a `str.Substring(0, 3)` call.
2727

2828
Span<int> sp = null;
29-
var slice = sp[..3];
29+
var slice = sp[..3]; // TODO: this is not an indexer call, but rather a `sp.Slice(0, 3)` call.
3030

3131
Span<byte> guidBytes = stackalloc byte[16];
32-
guidBytes[08] = 1;
32+
guidBytes[08] = 1; // TODO: this indexer call has no target, because the target is a `ref` returning getter.
3333

34-
new MyList([new(), new Test()]);
34+
new MyList([new(), new Test()]); // TODO: the `new()` call has no target, which is unexpected, as we know at compile time, that this is a `new Test()` call.
3535
}
3636

3737
public int MyProperty1 { get; }

0 commit comments

Comments
 (0)