Skip to content

Conversation

@msujew
Copy link
Member

@msujew msujew commented Dec 4, 2025

Closes #2074

I've noticed we're processing the isValueType(to) type to early, before completely "unwrapping" the from type. This eventually leads to some code which tries to assert that a union type can be assigned to a single value, which will quickly result in failure.

This change adjusts the order to move the unwrapping of the to type after the unwrapping of the from type.

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.

"The assigned type is not compatible with the declared property" with enum-like type

2 participants