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

Properly types 'invalid' as InvalidType #1378

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

markwpearce
Copy link
Collaborator

@markwpearce markwpearce commented Dec 17, 2024

Previously, invalid was typed as DynamicType

This PR changes it so it is InvalidType

This fixes the BinaryOperator validation and fixes #1367

In addition:

  • when the default value for function params and fields is set to invalid, then the type of the param/field is set to Dynamic.
  • Changes AllowableTypes to NOT include 'invalid' because that is a compile error:

image

Now there is a parser error when using as invalid :

image

@markwpearce markwpearce added this to the v1.0.0 milestone Dec 17, 2024
Copy link
Member

@TwitchBronBron TwitchBronBron left a comment

Choose a reason for hiding this comment

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

Nice!

@TwitchBronBron TwitchBronBron merged commit 351b9ff into release-1.0.0 Dec 17, 2024
4 checks passed
@TwitchBronBron TwitchBronBron deleted the catch_weird_addition_mismatch branch December 17, 2024 19:27
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