Skip to content

Replace static forwarders by a non-$ method to get the module #573

Closed
@lrytz

Description

@lrytz

While fixing the issues with static forwarders, @retronym suggested we should stop emitting those forwarders and instead emit a single static method to access the companion module.

Proposal:

  1. Add the static method in 2.13 (object A generates public static A$ module() { return A$.MODULE$ } in class A)
  2. Deprecate static forwarders - in 2.13 already?
  3. Remove static forwarders - in 2.14 already?

Opinions? Did we discuss this before?

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