-
Notifications
You must be signed in to change notification settings - Fork 341
Closed
Closed
Copy link
Labels
emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharpIssue for the C# client emitter: @typespec/http-client-csharp
Description
In the spector test cases, we are generating code with some xml doc issues:
/// <summary> withCancellationToken. </summary>
/// <param name="cancellationToken"></param>
/// <param name="cancellationToken"> The cancellation token that can be used to cancel the operation. </param>
/// <exception cref="ArgumentNullException"> <paramref name="cancellationToken"/> is null. </exception>
/// <exception cref="ClientResultException"> Service returned a non-success status code. </exception>
public virtual ClientResult WithCancellationToken(string cancellationToken, CancellationToken cancellationToken0 = default)
We have two cancellationToken in the xml doc.
How to reproduce:
- cd into
packages/http-client-csharpdirectory - Run script
./eng/scripts/Generate.ps1 special-words -Stubbed $false - Run
dotnet build ./generator/TestProjects/CadlRanch/http/special-words/SpecialWords.slnand you would see this cannot build.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharpIssue for the C# client emitter: @typespec/http-client-csharp