```d 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.