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

Emit a diagnostic when an expression only refers to a static element #1661

Merged
merged 1 commit into from Feb 3, 2021

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Feb 3, 2021

When a static element that has no runtime representation in AS was accessed, the compiler only had an assertion assuming that would never happen, but should print a diagnostic instead because it can happen.

fixes #1654

  • I've read the contributing guidelines

@dcodeIO dcodeIO merged commit 4dc6567 into master Feb 3, 2021
@dcodeIO dcodeIO deleted the issue-1654 branch June 1, 2021 15:20
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.

Assertion error when assigning an enum instead of an enum member
1 participant