Skip to content

Static @property function wrongly marked as needing const, inout, or immutable #791

@brianush1

Description

@brianush1
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions