D-Scanner
D-Scanner copied to clipboard
Static `@property` function wrongly marked as needing `const`, `inout`, or `immutable`
private class Foo {
static int bar() @property {
return 2;
}
}
D-scanner suggests putting a const, inout, or immutable attribute on bar; however, doing this would result in a compilation error.
I think it's worth mentioning this issue also applies to global functions, such as:
int bar() @property {
return 2;
}