lean4-htt/tests/lean/warningAsError.lean.expected.out
Kim Morrison f70b7e5722
feat: @[deprecated] requires a replacement identifier or message, and a since field (#6112)
This PR makes stricter requirements for the `@[deprecated]` attribute,
requiring either a replacement identifier as `@[deprecated bar]` or
suggestion text `@[deprecated "Past its use by date"]`, and also
requires a `since := "..."` field.
2024-11-26 08:45:54 +00:00

6 lines
307 B
Text

warningAsError.lean:8:6-8:7: warning: `g` has been deprecated: use `f` instead
1
warningAsError.lean:12:6-12:7: error: `g` has been deprecated: use `f` instead
1
warningAsError.lean:15:7-15:13: error: unused variable `unused`
note: this linter can be disabled with `set_option linter.unusedVariables false`