[Bug]: The clientOption stub generated by StubLibraryPlugin for versioned cannot compile #4690
Closed
4 tasks done
Labels
bug
Something isn't working
emitter:client:csharp
Issue for the C# client emitter: @typespec/http-client-csharp
Describe the bug
When generate stub library for a versioned service, the
clientOptions
class stub cannot compile because theLastestVersion
private field is not generated which is used in public constructor.generated stub:
expected:
Reproduction
Define a versioned service, and then generate stub library for it.
you can use the cadl-ranch test project [http-server-path-multiple ] (https://github.com/Azure/cadl-ranch/tree/main/packages/cadl-ranch-specs/http/server/path/multiple)
Checklist
The text was updated successfully, but these errors were encountered: