microsoft / microsoft/typespec
[Bug]: Resolving method parameters fail through template/model spread.
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
### Describe the bug
op a(... T, two: string): void;
op b is a<{one: string}>;
@@doc(b::parameters.one, "ERROR :(");
@@doc(b::parameters.two, "Works :)");
### Reproduction
[playground](https://azure.github.io/typespec-azure/playground?c=b3AgYTxUIGV4dGVuZHMgVHlwZVNwZWMuUmVmbGVjdGlvbi5Nb2RlbD4oLi4uIFQsIHR3bzogc3RyaW5nKTogdm9pZDsKb3AgYiBpcyBhPHtvbmXIH30%2BOwoKQEBkb2MoYjo6cGFyYW1ldGVycy5vbmUsICJFUlJPUiA6KCIpO9UmdHdvLCAiV29ya3MgOinEJg%3D%3D&e=%40typespec%2Fopenapi3&options=%7B%7D)
### Checklist
- [X] Follow our [Code of Conduct](https://github.com/microsoft/typespec/blob/main/CODE_OF_CONDUCT.md)
- [X] Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/Microsoft/typespec/discussions).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
Contributor guide
Assessment
This issue has not been assessed yet.