D-Scanner
D-Scanner copied to clipboard
Warn when using `static` on global variables
static int i;
This should raise a notice as static has no effect on global variables in D. This warning can be useful as it may be surprising to developers coming from C or C++, where static does have an effect on global variables.