Skip to content

Warn when using static on global variables #972

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions