Version: 1.1.0
@deprecated
@deprecated — Marks an API as outdated. Callers get a warning, and the message can name the replacement.
Example
@fieldwise_init
struct Demo:
var value: Int
Apply @deprecated on the declaration it changes. Decorators are resolved while compiling. They are not runtime wrappers.
See the decorator index for the rest of the set.