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] Useless statement warning is not raised for an arithmetic expression #426

Closed
3 tasks done
Tracked by #428
Luna-Klatzer opened this issue Feb 21, 2023 · 1 comment · Fixed by #427 or #428
Closed
3 tasks done
Tracked by #428

[Bug] Useless statement warning is not raised for an arithmetic expression #426

Luna-Klatzer opened this issue Feb 21, 2023 · 1 comment · Fixed by #427 or #428
Assignees
Labels
bug Bug or issue in the language or API
Milestone

Comments

@Luna-Klatzer
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

I am following the documentation's guide

  • I have read the documentation

This issue exists in the latest version

  • I am using the latest version

Current Behavior

When writing code, the compiler incorrectly doesn't recognise the following code as a potentially problematic and does not report an error:

1 + 1;

Expected Behavior

The compiler should properly recognise this issue and report the appropriate warning.

Steps To Reproduce

  1. Create an arithmetic expression, like for example:
1 + 1;

Environment

  • Kipper: 0.10.0
  • Environment: Firefox Developer Edition 109.0b9
  • Operating System: Arch Linux with Kernel 5.15.86-1-lts
@Luna-Klatzer Luna-Klatzer added the bug Bug or issue in the language or API label Feb 21, 2023
@Luna-Klatzer Luna-Klatzer self-assigned this Feb 21, 2023
@Luna-Klatzer Luna-Klatzer changed the title [Bug] Useless statement warning only is not raised for a useless arithmetic expression [Bug] Useless statement warning is not raised for an arithmetic expression Feb 21, 2023
Luna-Klatzer added a commit that referenced this issue Feb 21, 2023
Useless statement warning should now be properly reported for arithmetic expressions.
@Luna-Klatzer Luna-Klatzer mentioned this issue Feb 21, 2023
3 tasks
@Luna-Klatzer
Copy link
Member Author

Fixed by #427 and will be released in 0.10.1.

@Luna-Klatzer Luna-Klatzer linked a pull request Feb 21, 2023 that will close this issue
3 tasks
@Luna-Klatzer Luna-Klatzer added this to the v0.10.0 milestone Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug or issue in the language or API
Projects
1 participant