Open sarangan12 opened 4 months ago
This is not just an issue for tcgc @clientName
, any decorator that is trying to decorate on spread alias properties defined as above is problematic. See this @encodedName
example
@markcowl link to symbol refactor
This may be fixed by https://github.com/microsoft/typespec/pull/2640
Describe the bug
In the Typescript SDK Generation, I am trying to override the names of some objects/models generated. But, the compiler is not able to find the properties of the object when the properties are inherited from the parent.
Reproduction
The following code does not work. Playground Link is here.
But the following code works:
In the first code, the property is inherited. Only in such cases, the compiler errors out with the following message.
Please help me to resolve this issue.
Additional Info Please note the following code works:
The code fails only when
alias
is used.@xirzec @lmazuel @joheredi FYI.....
Checklist