Skip to content

Base.depwarn should be generated in the constructor #299

Description

@wilf-phasecraft

The expected behaviour when adding option deprecated = true to a message is for the compiler to inject a Base.depwarn, currently this gets injected in the module scope and gets suppressed during precompilation. IMO it should be injected as part of the generated constructor so that the deprecation warning is emitted when the constructor is first called.

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