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

bug: Unreachable code should fire a warning with diagnostics, not an error #6249

Closed
enitrat opened this issue Aug 20, 2024 · 0 comments · Fixed by #6259
Closed

bug: Unreachable code should fire a warning with diagnostics, not an error #6249

enitrat opened this issue Aug 20, 2024 · 0 comments · Fixed by #6259
Labels
bug Something isn't working

Comments

@enitrat
Copy link
Contributor

enitrat commented Aug 20, 2024

Bug Report

Cairo version:
2.7.1

Current behavior:
Unreachable code fires an error that prevents compilation. Consider emitting a warning that can be autofixed with cairo-lint down the line.

example:

fn main(){
 core::panic_with_felt252('hello world');
 let x  = 'cairo is cool';
 }
@enitrat enitrat added the bug Something isn't working label Aug 20, 2024
@orizi orizi linked a pull request Aug 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant