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 the optional type name and type identifier resolution #870

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

TristonianJones
Copy link
Collaborator

When calling type(<optional>) the expected output would be optional; however, this fails
since the name optional is part of the namespace. To ensure optionals are type-testable,
the type name has been shifted to optional_type. This should not break anyone unless you
are explicitly querying the type name as part of your implementation.

Additionally, this fix revealed a different issue wherein type identifiers were not being resolved
during type-check unless they were for structured object types. This change introduces a call
to FindIdent which is also the same call being made at runtime to resolve type identifiers
during evaluation.

@TristonianJones TristonianJones merged commit d45f67f into google:master Jan 7, 2024
2 checks passed
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