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

assertion error, if file import from itself #211

Closed
Akuli opened this issue Feb 10, 2023 · 1 comment
Closed

assertion error, if file import from itself #211

Akuli opened this issue Feb 10, 2023 · 1 comment

Comments

@Akuli
Copy link
Owner

Akuli commented Feb 10, 2023

save this to asd.jou

from "./asd.jou" import foo

def foo() -> int:
    return 123

Expected output: an error message saying that a file cannot import from itself.

Actual output:

jou: src/main.c:199: void compile_ast_to_llvm(struct CompileState *, struct FileState *): Assertion `src' failed.
@Akuli
Copy link
Owner Author

Akuli commented Dec 3, 2023

Done in #393.

@Akuli Akuli closed this as completed Dec 3, 2023
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

No branches or pull requests

1 participant