Skip to content

Commit 3527947

Browse files
committed
repro attempt
1 parent d812ede commit 3527947

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

IDisposableAnalyzers/Helpers/Disposable.Identity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ when target.Declaration is MethodDeclarationSyntax methodDeclaration &&
118118
case ThisExpressionSyntax:
119119
return true;
120120
case InvocationExpressionSyntax invocation
121-
when recursion.Target(invocation) is { Symbol: { IsStatic: false } } next &&
121+
when recursion.Target(invocation) is { Symbol.IsStatic: false } next &&
122122
next.Symbol.ContainingType.IsAssignableTo(target.Symbol.ContainingType, recursion.SemanticModel.Compilation):
123123
return IsIdentity(next, recursion);
124124
}

ValidCode/StructBuilder/Client.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ internal sealed class Client : IDisposable
1313

1414
private bool disposed;
1515

16-
public async Task<int> M()
16+
public async Task<int> M(bool rth)
1717
{
1818
this.ThrowIfDisposed();
1919
var id = Request.GetNextValidId();
2020
using var request = new Request()
21-
.Append(6, "message")
22-
.Append(2, "version")
23-
.Append(true, "subscribe");
21+
.Append(6, "message")
22+
.Append(2, "version")
23+
.Append(true, "subscribe")
24+
.Append(rth, "useRTH")
25+
.Append("abc", "text")
26+
.Append((string?)null, "empty");
2427
await this.socket.SendAsync(request.LengthPrefixed(), SocketFlags.None, CancellationToken.None).ConfigureAwait(false);
2528
return id;
2629
}

0 commit comments

Comments
 (0)