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 caching not complely accurate symbol #2617

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Oct 30, 2023

This PR #2603 resolved an issue where resolving meta types would cause types to be checked too early but this broke some late bound symbol resolution.

It would return the declaration symbol when checkTemplateTypes is false but would cache it. So in some cases it would then resolve the wrong symbol later

@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/2617/

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

@timotheeguerin timotheeguerin merged commit 2fb62e6 into microsoft:main Oct 31, 2023
10 checks passed
@timotheeguerin timotheeguerin deleted the fix/caching-invalid branch October 31, 2023 14:47
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