Skip to content

Conversation

@mbovel
Copy link
Member

@mbovel mbovel commented Mar 5, 2025

When constant folding, also reduce trees that have a single constant atom. This enables constant folding through unions, intersections, annotated types and type aliases.

@mbovel
Copy link
Member Author

mbovel commented Mar 12, 2025

Discussed with @sjrd who said it's probably not faisable to change the behavior of the constant folder as it could break backward compatibility and would require spec changes.

@mbovel mbovel closed this Mar 12, 2025
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.

1 participant