[core] Fix resolution of exception names in raise short form #507
No reviewers
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#507
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/issue-501"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Previous implementation fails as
resolver.get_identifier_def
in ARTIQwould return the exception init function rather than the class.
We fix this by limiting the exception class resolution to only include
raise statements, and to force the exception name to always be treated
as a class.
Fixes #501.