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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions