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

Unused variable warning #26

Closed
Akuli opened this issue Jan 5, 2023 · 1 comment
Closed

Unused variable warning #26

Akuli opened this issue Jan 5, 2023 · 1 comment

Comments

@Akuli
Copy link
Owner

Akuli commented Jan 5, 2023

Should get warning, if:

  • variable set but not used
  • variable never set

Example:

declare puts(message: byte*) -> int

def set_but_not_used() -> void:
    message = "hi"
    puts("hi")

# Uses hypothetical `x: int` declaration syntax that doesn't exist yet
def never_set() -> void:
    x: int
    puts("hi")
@Akuli
Copy link
Owner Author

Akuli commented Dec 18, 2023

Now there is #443 and #444.

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