Skip to content

Panic on match statement execution #5554

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

Closed
arihant2math opened this issue Feb 24, 2025 · 1 comment
Closed

Panic on match statement execution #5554

arihant2math opened this issue Feb 24, 2025 · 1 comment
Labels
C-bug Something isn't working

Comments

@arihant2math
Copy link
Collaborator

arihant2math commented Feb 24, 2025

class JsonFileType:
    UNIX_FD = "UNIX_FD"
    WINDOWS_HANDLE = "WINDOWS_HANDLE"
    STDOUT = "STDOUT"
# ... some match statement with JsonFileType
thread 'main' panicked at compiler\codegen\src\compile.rs:511:13:
The symbol 'JsonFileType' must be present in the symbol table, even when it is undefined in python.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@arihant2math arihant2math added the C-bug Something isn't working label Feb 24, 2025
@arihant2math arihant2math changed the title Panic on enum declaration Panic on match statement execution Feb 26, 2025
@arihant2math
Copy link
Collaborator Author

arihant2math commented Mar 30, 2025

Fixed with #5628

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant