Skip to content

Warn on private and public overloads for a given name #959

Description

@rikkimax

From Razvan's DConf 2024 talk.

// over.d
private void gun();
public void gun(int);
public alias t = gun;

// main.d
import over;

void main() {
   t();
}

A warning should be given if private and public is in overloaded set.

(Other potential solutions at compiler level are to error in talk).

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