turn missing doc error into warning

This commit is contained in:
Jon Eugster
2023-05-15 15:12:44 +02:00
parent e30eee92ed
commit de163a19c9
2 changed files with 45 additions and 34 deletions
+14 -3
View File
@@ -5,10 +5,21 @@ Game "Test"
World "TestW"
Level 1
/- Missing doc -/
-- Shows warning on `foo.bar`:
Statement foo.bar "some text" : 5 ≤ 7 := by
simp
NewLemma foo.baz
DisabledTactic tauto
/- Other tests -/
LemmaDoc add_zero as "add_zero" in "Nat" "(nothing)"
@[simp] Statement add_zero "test" (n : Nat) : n + n = n := by
sorry
Statement add_zero "test" (n : Nat) : n + 0 = n := by
rfl
Statement (n : Nat) : 0 + n = n := by
Template
@@ -23,5 +34,5 @@ NewLemma add_zero
#print add_zero
theorem xy (n : Nat) : n + n = n := by
theorem xy (n : Nat) : n + 0 = n := by
simp