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

Missing unused parameter warning for ref parameter #860

Open
andy-hanson opened this issue Mar 12, 2022 · 0 comments
Open

Missing unused parameter warning for ref parameter #860

andy-hanson opened this issue Mar 12, 2022 · 0 comments

Comments

@andy-hanson
Copy link

When I run dub run dscanner -- --styleCheck app.d on this code, there is only a warning for the parameter passed by-value.

private:
void f(ref int i) {}
void g(int j) {}

Output:

app.d(3:12)[warn]: Parameter j is never used.

i is similarly unused, so I would expect to get a warning for it too.

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