Skip to content

[Bug]: The overload decorator does not recognize an operation that's in the same interface . #3970

@catalinaperalta

Description

@catalinaperalta

Describe the bug

This PR shows a use case where the overload decorator is used on an operation in the same interface, however seems like typespec doesnt recognize this: Azure/azure-rest-api-specs#40625

The error outputted is: https://github.com/Azure/azure-rest-api-specs/actions/runs/22248625832/job/64367679720?pr=40625#step:4:105

To get around it I attempted explicitly referencing the interface but the same error is reported.

Reproduction

Azure/azure-rest-api-specs#40625

Checklist

  • Follow our Code of Conduct
  • Check that this issue is about the Azure libraries for typespec. For bug in the typespec language or core libraries file it in the TypeSpec repo
  • Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions