8000 Type not set for unary "-" leads to a crash · Issue #231 · exaloop/codon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Type not set for unary "-" leads to a crash #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an iss 8000 ue 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
xiaxinmeng opened this issue Mar 14, 2023 · 1 comment
Closed

Type not set for unary "-" leads to a crash #231

xiaxinmeng opened this issue Mar 14, 2023 · 1 comment
Assignees

Comments

@xiaxinmeng
Copy link

The type for unary "-" is not set and it leads to a crash of codon in the code.

test.py

- 'importlib',
- 'importlib._bootstrap',
- 'importlib._bootstrap_external',

Reproduce:
codon/codon-linux-x86_64/codon-deploy/bin/codon' run -release test.py

Crash message:

Assert failed:	type not set for (unary "-" (string* ("importlib") #:type "str")) [20824_644122661_2__0.py:2:1]
Expression:	expr->type
Source:		/github/workspace/codon/parser/visitors/typecheck/typecheck.cpp:63
Aborted (core dumped)

Environment:
codon: v0.15.5 on Feb 6
Ubuntu 18.04

@arshajii
Copy link
Contributor

Thanks for the report; I believe this is the same bug as #206 -- will fix ASAP.

inumanag added a commit that referenced this issue Mar 26, 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

3 participants
0