[http-client-csharp] spector case http/client/naming
cannot compile
#5653
Labels
emitter:client:csharp
Issue for the C# client emitter: @typespec/http-client-csharp
This spector has a sub-client
ClientModel
and a modelClientModel
under the same namespace: https://github.com/Azure/typespec-azure/blob/20444c9531da7b8b1bba8932d29269e96cacb270/packages/azure-http-specs/specs/client/naming/main.tsp#L147-L164In our generated code, now we just generated a client type
ClientModel
, and a model typeClientModel
.This will never compile because they both have a parameterless constructor. And on the other hand, even if this could compile, this will never work.
This issue will not happen on main branch. The code on main branch also have one client
ClientModel
and one modelClientModel
but they are defined in different namespaces therefore it is actually fine.But with the "honor tsp namespace" feature, they are now defined in the same namespace, and we now have a trouble.
The text was updated successfully, but these errors were encountered: