Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
b8a31ed10eeabaca678ab303ec3f4d7d5a817841
/
.
/
tests
/
lean
/
warningAsError.lean
blob: 7768da79d245be2d93f1f9cca8adce8413944fd3 [
file
]
set_option linter
.
deprecated
true
def
f
(
x
:
Nat
)
:=
x
+
1
@[
deprecated f
]
def
g
(
x
:
Nat
)
:=
x
+
1
#eval g 0 -- warning
set_option warningAsError
true
#eval g 0 -- error
set_option linter
.
unusedVariables
true
def
h
(
unused
:
Nat
)
:=
0
--
error