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

Rebuild the type of constants during evaluation. #4138

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

zygoloid
Copy link
Contributor

When evaluating in a generic context, a constant with a symbolic type might evaluate to a constant with a concrete type (or a more specific symbolic type). This can't actually happen yet given the current state of the toolchain, as far as I can determine, so this is more just a refactoring for now, but will be relied upon by future generics work.

When evaluting in a generic context, a constant with a symbolic type
might evaluate to a constant with a concrete type (or a more specific
symbolic type).
Copy link
Contributor

@jonmeow jonmeow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

toolchain/check/eval.cpp Outdated Show resolved Hide resolved
Co-authored-by: Jon Ross-Perkins <[email protected]>
Co-authored-by: Carbon Infra Bot <[email protected]>
@zygoloid zygoloid enabled auto-merge July 16, 2024 22:52
@zygoloid zygoloid added this pull request to the merge queue Jul 16, 2024
Merged via the queue into carbon-language:trunk with commit cd7c10b Jul 16, 2024
7 checks passed
@zygoloid zygoloid deleted the toolchain-generic-4 branch July 16, 2024 23:03
brymer-meneses pushed a commit to brymer-meneses/carbon-lang that referenced this pull request Aug 15, 2024
When evaluating in a generic context, a constant with a symbolic type
might evaluate to a constant with a concrete type (or a more specific
symbolic type). This can't actually happen yet given the current state
of the toolchain, as far as I can determine, so this is more just a
refactoring for now, but will be relied upon by future generics work.

---------

Co-authored-by: Jon Ross-Perkins <[email protected]>
Co-authored-by: Carbon Infra Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants