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

Raise immediately on certain exceptions during module-scope type check #2101

Merged

Conversation

iamdefinitelyahuman
Copy link
Contributor

What I did

Raise immediately on certain exceptions while type-checking the module scope. This prevents long error messages where other nodes fail the type checking because they rely on a previous node.

How I did it

Raise immediately on InvalidLiteral, InvalidType, and VariableDeclarationException. Each of these exceptions will not happen as a result of another node not yet being parsed.

How to verify it

Run tests.

Cute Animal Picture

image

@fubuloubu fubuloubu merged commit b4ca545 into vyperlang:master Jul 6, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-module-scope-exceptions branch July 6, 2020 14:03
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.

None yet

2 participants