Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with referencing cycle with an inline type #2602

Merged
merged 6 commits into from
Oct 30, 2023

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Oct 23, 2023

Change to the circularReference hook to pass a new ReferenceCyle class. Referencing a cycle which has a declaration in it shouldn't be a problem even if we reference an inline type in it. So this data structure helps with detecting such scenarios.

@github-actions
Copy link
Contributor

Changes in this PR will be published to the following url to try(check status of TypeSpec Pull Request Try It pipeline for publish status):
Playground: https://cadlplayground.z22.web.core.windows.net/prs/2602/

Website: https://tspwebsitepr.z22.web.core.windows.net/prs/2602/

@timotheeguerin timotheeguerin changed the title Fix issue with referencing cycle with an inline typ Fix issue with referencing cycle with an inline type Oct 25, 2023
@timotheeguerin timotheeguerin enabled auto-merge (squash) October 30, 2023 18:06
@timotheeguerin timotheeguerin merged commit 553bfc4 into microsoft:main Oct 30, 2023
10 checks passed
@timotheeguerin timotheeguerin deleted the circular-ref-fixes branch October 30, 2023 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants