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

Adds Parser error when custom type encountered in brs file #1336

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

markwpearce
Copy link
Collaborator

This PR changes the parser so any custom type (eg. Class names, interfaces, built in types, etc) will result in a diagnostic:

BrighterScript feature 'custom types' is not supported in standard BrightScript files

Fixes: #1335

@markwpearce markwpearce added this to the v1.0.0 milestone Oct 24, 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 work. Looks good to me

@markwpearce markwpearce merged commit cc3491b into release-1.0.0 Oct 24, 2024
4 checks passed
@markwpearce markwpearce deleted the fix_built_in_types_in_brs branch October 24, 2024 13:02
@TwitchBronBron
Copy link
Member

@markwpearce does this also need to be fixed in v0 since we back-ported some custom type logic over there too?

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