D-Scanner icon indicating copy to clipboard operation
D-Scanner copied to clipboard

Missing unused parameter warning for `ref` parameter

Open andy-hanson opened this issue 3 years ago • 0 comments

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.

andy-hanson avatar Mar 12 '22 21:03 andy-hanson