lean4-htt/tests/lean/run/5236.lean
jrr6 4759506bcf
chore: use note and hint' for message addenda (#8980)
This PR improves the consistency of error message formatting by
rendering addenda of several existing error messages as labeled notes
and hints.
2025-06-27 15:16:01 +00:00

33 lines
720 B
Text

/-!
# Deprecate `:=` for `inductive` and `structure`
-/
set_option linter.deprecated true
/--
warning: 'inductive ... :=' has been deprecated in favor of 'inductive ... where'.
Note: This linter can be disabled with `set_option linter.deprecated false`
-/
#guard_msgs in
inductive DogSound' :=
| woof
| grr
/--
warning: structure ... :=' has been deprecated in favor of 'structure ... where'.
Note: This linter can be disabled with `set_option linter.deprecated false`
-/
#guard_msgs in
structure S :=
(n : Nat)
/--
warning: class ... :=' has been deprecated in favor of 'class ... where'.
Note: This linter can be disabled with `set_option linter.deprecated false`
-/
#guard_msgs in
class C :=
(n : Nat)