Skip to content

pragma depreceated

IsaacShelton edited this page Mar 21, 2022 · 1 revision

pragma deprecated

pragma deprecated is a pragma directive that's used to mark files as deprecated

pragma deprecated

pragma deprecated "Use 'newer/better/file.adept' instead"

When encountered, a warning will be raised. A reason can optionally be specified.

main.adept:2:8: warning: This file is deprecated and may be removed in the future
 └ Use 'newer/better/file.adept' instead
  2| pragma deprecated "Use 'newer/better/file.adept' instead"
            ^^^^^^^^^^
Clone this wiki locally