Skip to content

Need check that overload name is not used in subtype #326

@mikesamuel

Description

@mikesamuel
interface I {
  @overload("f")
  let g(): Void;
}

class C extends I {
  public g(): Void {}
  public f(): Void {}  // Illegal
}

The presence of @overload for a name in a super-type basically reserves that name in sub-types. This is meant to allow backends to do extra things with the overload name without also managing name conflicts.

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